diff --git a/tools/js2c.py b/tools/js2c.py index 880ac529d4..8ef644ee19 100755 --- a/tools/js2c.py +++ b/tools/js2c.py @@ -31,7 +31,13 @@ # char arrays. It is used for embedded JavaScript code in the V8 # library. -import os, re, sys, string +import os +from os.path import dirname +import re +import sys +import string + +sys.path.append(dirname(__file__) + "/../deps/v8/tools"); import jsmin diff --git a/tools/jsmin.py b/tools/jsmin.py deleted file mode 100644 index d03f1dcab5..0000000000 --- a/tools/jsmin.py +++ /dev/null @@ -1,3 +0,0 @@ -import sys -sys.path.append("../deps/v8/tools") -import jsmin diff --git a/tools/test.py b/tools/test.py index ba201334fc..f8740e86bb 100755 --- a/tools/test.py +++ b/tools/test.py @@ -40,9 +40,10 @@ import sys import tempfile import time import threading -import utils from Queue import Queue, Empty +sys.path.append(dirname(__file__) + "/../deps/v8/tools"); +import utils VERBOSE = False diff --git a/tools/utils.py b/tools/utils.py deleted file mode 120000 index 7a7b1b3063..0000000000 --- a/tools/utils.py +++ /dev/null @@ -1 +0,0 @@ -../deps/v8/tools/utils.py \ No newline at end of file