Use run_command() in traceKeyExtractor
This commit is contained in:
1 parent
7f4165762b
commit
5e0e0b7aa1
2 files changed
+4
-18
No files matched your search
@@ -49,6 +49,7 @@ def strip_color_codes(input_string):
|
||||
return ansi_escape.sub('', input_string)
|
||||
|
||||
def run_command(command):
|
||||
print(' '.join(command))
|
||||
try:
|
||||
# On Windows, use the shell=True argument to run the command
|
||||
result = subprocess.run(command, shell=os.name == 'nt', stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
||||
Reference in new issue
Block a user