diff options
author | digit@google.com <digit@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-30 16:48:13 +0000 |
---|---|---|
committer | digit@google.com <digit@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-30 16:48:13 +0000 |
commit | 48af8a0a6aab8d64a1fca44e1dc4b9f57ca96bd2 (patch) | |
tree | 9816afb576bab59ff8f08870d87fd526a16032eb /gyp_skia | |
parent | 2362ec808b1b45726a9f9ef469fbe8c5441de11c (diff) |
gyp_skia: Fix module search path.
gyp_skia should prepend the local gyp source path to the python
module search path, instead of appending it. Otherwise, if a 'gyp'
module is locally installed on the machine, it will be read instead
of the current version in the Skia tree.
This breaks the Android build when the installed 'gyp' module doesn't
support the "make-android" generator.
Review URL: https://codereview.appspot.com/6344096
git-svn-id: http://skia.googlecode.com/svn/trunk@4832 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gyp_skia')
-rwxr-xr-x | gyp_skia | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -26,7 +26,9 @@ gyp_config_dir = os.path.join(script_dir, 'gyp') # to be written. output_dir = os.path.join(os.path.abspath(script_dir), 'out') -sys.path.append(os.path.join(gyp_source_dir, 'pylib')) +# Ensure we import our current gyp source's module, not any version +# pre-installed in your PYTHONPATH. +sys.path.insert(0, os.path.join(gyp_source_dir, 'pylib')) import gyp def additional_include_files(args=[]): |