aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp_skia
diff options
context:
space:
mode:
authorGravatar digit@google.com <digit@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-30 16:48:13 +0000
committerGravatar digit@google.com <digit@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-30 16:48:13 +0000
commit48af8a0a6aab8d64a1fca44e1dc4b9f57ca96bd2 (patch)
tree9816afb576bab59ff8f08870d87fd526a16032eb /gyp_skia
parent2362ec808b1b45726a9f9ef469fbe8c5441de11c (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-xgyp_skia4
1 files changed, 3 insertions, 1 deletions
diff --git a/gyp_skia b/gyp_skia
index cf55084cae..d6b5504223 100755
--- a/gyp_skia
+++ b/gyp_skia
@@ -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=[]):