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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2009 Google Inc. All rights reserved. 3 # Copyright (c) 2009 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import sys 7 import sys
8 8
9 # TODO(mark): sys.path manipulation is some temporary testing stuff. 9 # TODO(mark): sys.path manipulation is some temporary testing stuff.
10 try: 10 try:
11 import os.path
12 sys.path = [ os.path.join(os.path.dirname(sys.argv[0]), 'pylib') ] + sys.path
13
11 import gyp 14 import gyp
12 except ImportError, e: 15 except ImportError, e:
13 import os.path
14 sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), 'pylib'))
15 import gyp 16 import gyp
16 17
17 if __name__ == '__main__': 18 if __name__ == '__main__':
18 sys.exit(gyp.script_main()) 19 sys.exit(gyp.script_main())
OLDNEW
« 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