diff --git a/gyp_skia b/gyp_skia index cf55084ca..d6b550422 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=[]):