diff --git a/src/command.py b/src/command.py index 7c81cf8..3369600 100644 --- a/src/command.py +++ b/src/command.py @@ -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 \ No newline at end of file + return output