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

Unified Diff: gyp_main.py

Issue 197063002: Import local gyp.py, then fallback to system Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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: gyp_main.py
diff --git a/gyp_main.py b/gyp_main.py
index 4ec872f0f95aa3840967f8951e7e6448477e7d64..fc1fff1968c6151416081102fa6754004463a059 100755
--- a/gyp_main.py
+++ b/gyp_main.py
@@ -8,10 +8,11 @@ import sys
# TODO(mark): sys.path manipulation is some temporary testing stuff.
try:
+ import os.path
+ sys.path = [ os.path.join(os.path.dirname(sys.argv[0]), 'pylib') ] + sys.path
+
import gyp
except ImportError, e:
- import os.path
- sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib'))
import gyp
if __name__ == '__main__':
« 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