projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eaa4d3
)
Fix the panic message so that it looks more like M5's panic.
author
Nathan Binkert
<binkertn@umich.edu>
Wed, 9 Feb 2005 18:41:53 +0000
(13:41 -0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Wed, 9 Feb 2005 18:41:53 +0000
(13:41 -0500)
Make it so the same path is not added to the system path twice.
--HG--
extra : convert_revision :
fe18db38cc4e335ad3525a364e9f8faf62b60e52
sim/pyconfig/m5config.py
patch
|
blob
|
history
diff --git
a/sim/pyconfig/m5config.py
b/sim/pyconfig/m5config.py
index c9bfdab540ce1048e88631b90a97e91b74bf6c6e..bbd437b3081ddb8c422fa772f67a85a84daded08 100644
(file)
--- a/
sim/pyconfig/m5config.py
+++ b/
sim/pyconfig/m5config.py
@@
-36,11
+36,12
@@
env = {}
env.update(os.environ)
def panic(*args, **kwargs):
- sys.exit(*args, **kwargs)
+ print >>sys.stderr, 'panic:', string
+ sys.exit(1)
def AddToPath(path):
path = os.path.realpath(path)
- if os.path.isdir(path):
+ if os.path.isdir(path)
and path not in sys.path
:
sys.path.append(path)
def Import(path):