diff options
author | Kevin Lim <ktlim@umich.edu> | 2006-07-14 17:53:16 -0400 |
---|---|---|
committer | Kevin Lim <ktlim@umich.edu> | 2006-07-14 17:53:16 -0400 |
commit | 138a4faf2894ff7d22585b8398ae87f8e6aad9a1 (patch) | |
tree | 77b8bb9aa2534f9b7747c5923e9c9cb776fdac21 /src/python | |
parent | 40ebf0811a5cca1de50c71d5c56216bb37a756b3 (diff) | |
download | gem5-138a4faf2894ff7d22585b8398ae87f8e6aad9a1.tar.xz |
Minor updates.
src/python/m5/config.py:
Formatting.
src/python/m5/main.py:
Slightly more useful output when you don't enter in a valid script file.
--HG--
extra : convert_revision : 5a71a6c94dbedeb000f83f57b0b575c2df924509
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/m5/config.py | 3 | ||||
-rw-r--r-- | src/python/m5/main.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/python/m5/config.py b/src/python/m5/config.py index 8291e1e1b..e7fe7b78f 100644 --- a/src/python/m5/config.py +++ b/src/python/m5/config.py @@ -666,7 +666,8 @@ class BaseProxy(object): result, done = self.find(obj) if not done: - raise AttributeError, "Can't resolve proxy '%s' from '%s'" % \ + raise AttributeError, \ + "Can't resolve proxy '%s' from '%s'" % \ (self.path(), base.path()) if isinstance(result, BaseProxy): diff --git a/src/python/m5/main.py b/src/python/m5/main.py index 54c54c1d5..c97390d25 100644 --- a/src/python/m5/main.py +++ b/src/python/m5/main.py @@ -249,6 +249,8 @@ def main(): # check to make sure we can find the listed script if not arguments or not os.path.isfile(arguments[0]): + if arguments and not os.path.isfile(arguments[0]): + print "Script %s not found" % arguments[0] usage(2) # tell C++ about output directory |