From 39765093d6864b4db2b340e47724862074c67608 Mon Sep 17 00:00:00 2001 From: gibbed Date: Sat, 22 Feb 2020 12:10:18 -0600 Subject: [PATCH] Fix xb lint --all on Windows. --- xenia-build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xenia-build b/xenia-build index 3981555e4..c51e9b3af 100755 --- a/xenia-build +++ b/xenia-build @@ -185,7 +185,7 @@ def get_bin(binary): return None -def shell_call(command, throw_on_error=True, stdout_path=None): +def shell_call(command, throw_on_error=True, stdout_path=None, shell=False): """Executes a shell command. Args: @@ -203,10 +203,10 @@ def shell_call(command, throw_on_error=True, stdout_path=None): try: if throw_on_error: result = 1 - subprocess.check_call(command, shell=False, stdout=stdout_file) + subprocess.check_call(command, shell=shell, stdout=stdout_file) result = 0 else: - result = subprocess.call(command, shell=False, stdout=stdout_file) + result = subprocess.call(command, shell=shell, stdout=stdout_file) finally: if stdout_file: stdout_file.close() @@ -1234,7 +1234,7 @@ class LintCommand(Command): shell_call([ 'type' if sys.platform == 'win32' else 'cat', difftemp, - ]) + ], shell=True if sys.platform == 'win32' else False) if os.path.exists(difftemp): os.remove(difftemp) print('') print('')