summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-02-05 13:50:25 -0500
committerNathan Binkert <binkertn@umich.edu>2005-02-05 13:50:25 -0500
commitc4089562d5add225cd8275b59456eb7eb559b988 (patch)
tree9d1f7dd2134cd743d83392454bf3bbb812dc709b /test
parentfc64ab81027b6787d7543a8f94dbc07c270e4ef1 (diff)
downloadgem5-c4089562d5add225cd8275b59456eb7eb559b988.tar.xz
Tweak genini.
test/genini.py: Make it possible to run genini from a different directory. --HG-- extra : convert_revision : 57cfb010d6114512040bf334ea21c9ed87234be0
Diffstat (limited to 'test')
-rw-r--r--test/genini.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/genini.py b/test/genini.py
index db1a7a5b0..0dac0d409 100644
--- a/test/genini.py
+++ b/test/genini.py
@@ -26,10 +26,12 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import getopt, os, os.path, sys
+from os.path import join as joinpath, realpath
-sys.path.append('..')
-sys.path.append('../configs/kernel')
-sys.path.append('../sim/pyconfig')
+mypath = sys.path[0]
+sys.path.append(joinpath(mypath, '..'))
+sys.path.append(joinpath(mypath, '../configs/kernel'))
+sys.path.append(joinpath(mypath, '../sim/pyconfig'))
from importer import mpy_exec, mpy_execfile, AddToPath
from m5config import *