summaryrefslogtreecommitdiff
path: root/configs/common/SysPaths.py
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2006-11-08 14:10:25 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2006-11-08 14:10:25 -0500
commit5a46f336a1b98d1ddeed40bcb24e285394760bf3 (patch)
treed4ee2e935795696becc8d4ffd21bb4facbca4c7f /configs/common/SysPaths.py
parent0a0d9cd3ab598f80f80834fa62e5aa397db3ef6c (diff)
downloadgem5-5a46f336a1b98d1ddeed40bcb24e285394760bf3.tar.xz
make rcS files read from the m5 source directory, not /dist.
--HG-- extra : convert_revision : 45a2dbf5b05b19dd60fbc3a5b10e9355c8351e3b
Diffstat (limited to 'configs/common/SysPaths.py')
-rw-r--r--configs/common/SysPaths.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/common/SysPaths.py b/configs/common/SysPaths.py
index 2070d11f8..c61c9962e 100644
--- a/configs/common/SysPaths.py
+++ b/configs/common/SysPaths.py
@@ -30,6 +30,9 @@ import os, sys
from os.path import isdir, join as joinpath
from os import environ as env
+config_path = os.path.dirname(os.path.abspath(__file__))
+config_root = os.path.dirname(config_path)
+
def disk(file):
system()
return joinpath(disk.dir, file)
@@ -60,7 +63,7 @@ def system():
if not disk.dir:
disk.dir = joinpath(system.dir, 'disks')
if not script.dir:
- script.dir = joinpath(system.dir, 'boot')
+ script.dir = joinpath(config_root, 'boot')
system.dir = None
binary.dir = None