Index: gcl.py |
diff --git a/gcl.py b/gcl.py |
index 8c89a7a049948c7f458bea55a200d89357ba4c48..7977229f02e65008d8e23478b5f30e0e0fea36ae 100755 |
--- a/gcl.py |
+++ b/gcl.py |
@@ -208,14 +208,8 @@ def ErrorExit(msg): |
def RunShellWithReturnCode(command, print_output=False): |
"""Executes a command and returns the output and the return code.""" |
- # Use a shell for subcommands on Windows to get a PATH search, and because svn |
- # may be a batch file. |
- use_shell = sys.platform.startswith("win") |
- env = os.environ.copy() |
- env['LANGUAGE'] = 'en' |
- p = subprocess.Popen(command, stdout=subprocess.PIPE, |
- stderr=subprocess.STDOUT, shell=use_shell, env=env, |
- universal_newlines=True) |
+ p = gclient_utils.Popen(command, stdout=subprocess.PIPE, |
+ stderr=subprocess.STDOUT, universal_newlines=True) |
if print_output: |
output_array = [] |
while True: |