Clean up some more config stuff.
configs/common/FSConfig.py:
Clean up some code to make functions look less like classes. Also put makeList function (formerly listWrapper) into m5 itself.
configs/test/fs.py:
Update for changed code.
src/python/m5/__init__.py:
Put makeList into m5.
--HG--
extra : convert_revision : 731806a7486f9abf986f52926126df666b024b1d
This commit is contained in:
@@ -44,6 +44,11 @@ def panic(string):
|
||||
print >>sys.stderr, 'panic:', string
|
||||
sys.exit(1)
|
||||
|
||||
def makeList(objOrList):
|
||||
if isinstance(objOrList, list):
|
||||
return objOrList
|
||||
return [objOrList]
|
||||
|
||||
# Prepend given directory to system module search path. We may not
|
||||
# need this anymore if we can structure our config library more like a
|
||||
# Python package.
|
||||
|
||||
Reference in New Issue
Block a user