Put tools/ into PYTHON_PATH
authorRyan Dahl <ry@tinyclouds.org>
Tue, 30 Nov 2010 03:46:00 +0000 (19:46 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 30 Nov 2010 03:46:00 +0000 (19:46 -0800)
wscript

diff --git a/wscript b/wscript
index e9f1078..c783637 100644 (file)
--- a/wscript
+++ b/wscript
@@ -9,6 +9,9 @@ from logging import fatal
 cwd = os.getcwd()
 APPNAME="node.js"
 
+# Use the directory that this file is found in to find the tools
+# directory where the js2c.py file can be found.
+sys.path.append(sys.argv[0] + '/tools');
 import js2c
 
 srcdir = '.'