summaryrefslogtreecommitdiff
path: root/configs/test/SysPaths.py
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-07-21 16:08:17 -0400
committerKevin Lim <ktlim@umich.edu>2006-07-21 16:08:17 -0400
commitdb5f710a7b9fbaf6cc63861d9cd7dc3f4a3fdea1 (patch)
treec7e7a3710d9571a6bfe42c9fee4c40c6232117e2 /configs/test/SysPaths.py
parent8bbe925192d786a07bb5f4fac90e11f4983f92b7 (diff)
parenta6c2e5cca0d6dde79d2d011d5d0c6e4b5208b8d5 (diff)
downloadgem5-db5f710a7b9fbaf6cc63861d9cd7dc3f4a3fdea1.tar.xz
Merge ktlim@zizzer:/bk/newmem
into zamp.eecs.umich.edu:/z/ktlim2/clean/newmem-merge configs/test/fs.py: Hand merge. --HG-- extra : convert_revision : 78f7c46084f66d52ddfe0386fd7c08de8017331e
Diffstat (limited to 'configs/test/SysPaths.py')
-rw-r--r--configs/test/SysPaths.py40
1 files changed, 0 insertions, 40 deletions
diff --git a/configs/test/SysPaths.py b/configs/test/SysPaths.py
deleted file mode 100644
index 3f96a546f..000000000
--- a/configs/test/SysPaths.py
+++ /dev/null
@@ -1,40 +0,0 @@
-import os, sys
-from os.path import isdir, join as joinpath
-from os import environ as env
-
-def disk(file):
- system()
- return joinpath(disk.dir, file)
-
-def binary(file):
- system()
- return joinpath(binary.dir, file)
-
-def script(file):
- system()
- return joinpath(script.dir, file)
-
-def system():
- if not system.dir:
- try:
- path = env['M5_PATH'].split(':')
- except KeyError:
- path = [ '/dist/m5/system', '/n/poolfs/z/dist/m5/system' ]
-
- for system.dir in path:
- if os.path.isdir(system.dir):
- break
- else:
- raise ImportError, "Can't find a path to system files."
-
- if not binary.dir:
- binary.dir = joinpath(system.dir, 'binaries')
- if not disk.dir:
- disk.dir = joinpath(system.dir, 'disks')
- if not script.dir:
- script.dir = joinpath(system.dir, 'boot')
-
-system.dir = None
-binary.dir = None
-disk.dir = None
-script.dir = None