systemc: Get rid of --working-dir in the test's config.py.
[gem5.git] / tests / main.py
index c8dc9b9613faf7a3aeb049a096aa26f611177515..779445d81c818a17cfcd6014165d6ed8cb7743d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 '''
 The main source for testlib. Ties together the default test runners and
 loaders.
@@ -10,7 +10,7 @@ from __future__ import print_function
 import sys
 import os
 
-base_dir = os.path.dirname(os.path.abspath(__name__))
+base_dir = os.path.dirname(os.path.abspath(__file__))
 ext_path = os.path.join(base_dir, os.pardir, 'ext')
 
 sys.path.insert(0, base_dir)