Index: build/gyp_chromium |
diff --git a/build/gyp_chromium b/build/gyp_chromium |
index 736062e3eb2c36b9c2fdddfc94d5e2ef03c3b234..335df1ccb223cefa68b41e8f95497f97f84506b8 100755 |
--- a/build/gyp_chromium |
+++ b/build/gyp_chromium |
@@ -227,19 +227,12 @@ if __name__ == '__main__': |
'python2*_bin')))[-1] |
env = os.environ.copy() |
env['PATH'] = python_dir + os.pathsep + env.get('PATH', '') |
- p = subprocess.Popen( |
- [os.path.join(python_dir, 'python.exe')] + sys.argv, |
- env=env, shell=False) |
- p.communicate() |
- sys.exit(p.returncode) |
+ cmd = [os.path.join(python_dir, 'python.exe')] + sys.argv |
+ sys.exit(subprocess.call(cmd, env=env)) |
# This could give false positives since it doesn't actually do real option |
# parsing. Oh well. |
- gyp_file_specified = False |
- for arg in args: |
- if arg.endswith('.gyp'): |
- gyp_file_specified = True |
- break |
+ gyp_file_specified = any(arg.endswith('.gyp') for arg in args) |
gyp_environment.SetEnvironment() |