Skip to content

Commit

Permalink
Fix Windows CMD
Browse files Browse the repository at this point in the history
  • Loading branch information
Gakamine authored Feb 16, 2023
1 parent 962a975 commit 49ab885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import subprocess

def execute_cmd(cmd):
output=subprocess.run(cmd, stdout=subprocess.PIPE).stdout.decode("utf-8")
output=subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, text=True).stdout
output=output.replace('\r', '').replace('\n', '')
return output
return output

0 comments on commit 49ab885

Please sign in to comment.