From 75916bb60bd61449c816802b21e0e4546b863681 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Thu, 17 Oct 2013 14:37:58 -0400 Subject: [PATCH] Bug 927670 - Prepend lib dirs to sys.path in jit_test.py to avoid conflicts. r=terrence --- js/src/jit-test/jit_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/jit-test/jit_test.py b/js/src/jit-test/jit_test.py index ea984efb17c..1fb4c440937 100755 --- a/js/src/jit-test/jit_test.py +++ b/js/src/jit-test/jit_test.py @@ -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()