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

Unified Diff: gyp

Issue 18271010: Make root invocation less crazy so that multiprocessing works on Windows (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: . Created 7 years, 5 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 | gyp.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp
diff --git a/gyp b/gyp
index d52e7116f5a5a9b634f55bbd7bda025c0a80367c..ed09face45fdb4c34ec2117eb980c6d47838738f 100755
--- a/gyp
+++ b/gyp
@@ -1,18 +1,7 @@
-#!/usr/bin/env python
-
-# Copyright (c) 2009 Google Inc. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import sys
-
-# TODO(mark): sys.path manipulation is some temporary testing stuff.
-try:
- 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__':
- sys.exit(gyp.main(sys.argv[1:]))
+#!/usr/bin/bash
+# Copyright 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+BASE=`dirname $0`
+python $BASE/gyp_main.py
Isaac (away) 2013/07/10 08:23:37 nit: could use exec here to avoid the extra proces
« no previous file with comments | « no previous file | gyp.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698