]> khamidou — GitHub mirrors - electron.git/commitdiff
`subprocess.Popen` fails when Python is in "App Paths"
authorIgorKlopov <igor@klopov.com>
Tue, 25 Nov 2014 22:16:17 +0000 (14:16 -0800)
committerIgorKlopov <igor@klopov.com>
Tue, 25 Nov 2014 22:16:17 +0000 (14:16 -0800)
Win32. Python is not added to PATHs by default. Instead it is added to `App Paths` registry key ( http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx ). In both cases Python binary is found when i enter `python` command. But `subprocess.Popen` seems to fail when BOTH (1) runs a string `python tools/atom_source_root.py` AND (2) python is not in PATHs, only in App Paths. I suggest using list in <!( and hope this does not break linux/macos builds.

atom.gyp

index 7ecc51c424e32c342f5e5348c7fef7a6237f490a..a78ad7092e8c91ba7d60895cda2b61ab5edbeb78 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
       'sk', 'sl', 'sr', 'sv', 'sw', 'ta', 'te', 'th', 'tr', 'uk',
       'vi', 'zh-CN', 'zh-TW',
     ],
-    'atom_source_root': '<!(python tools/atom_source_root.py)',
+    'atom_source_root': '<!(["python", "tools/atom_source_root.py"])',
     'conditions': [
       ['OS=="win"', {
         'app_sources': [