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
This commit is contained in:
parent
40ebf0811a
commit
138a4faf28
2 changed files with 4 additions and 1 deletions
|
@ -666,7 +666,8 @@ class BaseProxy(object):
|
||||||
result, done = self.find(obj)
|
result, done = self.find(obj)
|
||||||
|
|
||||||
if not done:
|
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())
|
(self.path(), base.path())
|
||||||
|
|
||||||
if isinstance(result, BaseProxy):
|
if isinstance(result, BaseProxy):
|
||||||
|
|
|
@ -249,6 +249,8 @@ def main():
|
||||||
|
|
||||||
# check to make sure we can find the listed script
|
# check to make sure we can find the listed script
|
||||||
if not arguments or not os.path.isfile(arguments[0]):
|
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)
|
usage(2)
|
||||||
|
|
||||||
# tell C++ about output directory
|
# tell C++ about output directory
|
||||||
|
|
Loading…
Reference in a new issue