Bug 927670 - Prepend lib dirs to sys.path in jit_test.py to avoid conflicts. r=terrence

This commit is contained in:
Ben Kelly 2013-10-17 14:37:58 -04:00
parent 658705fb75
commit 75916bb60b

View File

@ -9,8 +9,8 @@ def add_libdir_to_path():
from os.path import dirname, exists, join, realpath
js_src_dir = dirname(dirname(realpath(sys.argv[0])))
assert exists(join(js_src_dir,'jsapi.h'))
sys.path.append(join(js_src_dir, 'lib'))
sys.path.append(join(js_src_dir, 'tests', 'lib'))
sys.path.insert(0, join(js_src_dir, 'lib'))
sys.path.insert(0, join(js_src_dir, 'tests', 'lib'))
add_libdir_to_path()