projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PCI: Move PCI Configuration data into devices now that we can inherit parameters.
[gem5.git]
/
configs
/
common
/
SysPaths.py
diff --git
a/configs/common/SysPaths.py
b/configs/common/SysPaths.py
index 2070d11f80f0e9d9177f0c8b64e7ee20ed79eb98..c61c9962e4509da4c3ff22bd6cae781fd8fc76c6 100644
(file)
--- 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
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)
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:
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
system.dir = None
binary.dir = None