summaryrefslogtreecommitdiff
path: root/deps/gyp/gyp_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/gyp_main.py')
-rwxr-xr-xdeps/gyp/gyp_main.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/deps/gyp/gyp_main.py b/deps/gyp/gyp_main.py
new file mode 100755
index 0000000000..4ec872f0f9
--- /dev/null
+++ b/deps/gyp/gyp_main.py
@@ -0,0 +1,18 @@
+#!/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.script_main())