From 08c0919b433d7188c61a43266f7cfa1d67df28ae Mon Sep 17 00:00:00 2001 From: Kevin Lim Date: Thu, 27 Jul 2006 17:49:00 -0400 Subject: 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 --- src/python/m5/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/python/m5/__init__.py') diff --git a/src/python/m5/__init__.py b/src/python/m5/__init__.py index 3d0e3defa..950d605df 100644 --- a/src/python/m5/__init__.py +++ b/src/python/m5/__init__.py @@ -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. -- cgit v1.2.3