Index: pylib/gyp/__init__.py |
diff --git a/pylib/gyp/__init__.py b/pylib/gyp/__init__.py |
index 3769c526522e98b52b7139c0fb22e5881a22a69a..736c2fec8a6b293796495a129a108830da3bd15a 100755 |
--- a/pylib/gyp/__init__.py |
+++ b/pylib/gyp/__init__.py |
@@ -70,6 +70,9 @@ def Load(build_files, format, default_variables={}, |
# avoiding collisions with user and automatic variables. |
default_variables['GENERATOR'] = format |
+ # Provide a PYTHON value to run sub-commands with the same python |
+ default_variables['PYTHON'] = sys.executable |
Mark Mentovai
2013/03/04 21:24:53
default_variables isn’t right. Which commands are
Evan Martin
2013/03/05 17:05:49
(I glanced at the Mozilla patch that prompted this
tony
2013/03/05 22:33:24
Is it possible to use <!@pymod_do_main(foo <@(INPU
|
+ |
# Format can be a custom python file, or by default the name of a module |
# within gyp.generator. |
if format.endswith('.py'): |