Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Unified Diff: pylib/gyp/__init__.py

Issue 12374093: pass back python bin from configure Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698