summaryrefslogtreecommitdiff
path: root/configs/test/fs.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2006-07-10 23:00:13 -0400
committerNathan Binkert <binkertn@umich.edu>2006-07-10 23:00:13 -0400
commit55ea050d4823ca294db94d6a1f7f2fc35177e044 (patch)
tree89dfadc4bb399ecc2f23a78c78f12b0ae8ae2ca7 /configs/test/fs.py
parentad4374e0cd235ea98ddc2a4659f9d7c86e5b355b (diff)
downloadgem5-55ea050d4823ca294db94d6a1f7f2fc35177e044.tar.xz
Migrate most of main() and and all option parsing to python
configs/test/fs.py: configs/test/test.py: update for the new way that m5 deals with options src/python/SConscript: Compile AUTHORS, LICENSE, README, and RELEASE_NOTES into the python stuff. src/python/m5/__init__.py: redo the way options work. Move them all to main.py src/sim/main.cc: Migrate more functionality for main() into python. Namely option parsing src/python/m5/attrdict.py: A dictionary object that overrides attribute access to do item access. src/python/m5/main.py: The new location for M5's option parsing, and the main() routine to set up the simulation. --HG-- extra : convert_revision : c86b87a9f508bde1994088e23fd470c7753ee4c1
Diffstat (limited to 'configs/test/fs.py')
-rw-r--r--configs/test/fs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/configs/test/fs.py b/configs/test/fs.py
index cd894ab73..d191f7055 100644
--- a/configs/test/fs.py
+++ b/configs/test/fs.py
@@ -1,14 +1,14 @@
+import optparse, os, sys
+
import m5
from m5.objects import *
-import os,optparse,sys
from SysPaths import *
-parser = optparse.OptionParser(option_list=m5.standardOptions)
+parser = optparse.OptionParser()
parser.add_option("-t", "--timing", action="store_true")
(options, args) = parser.parse_args()
-m5.setStandardOptions(options)
if args:
print "Error: script doesn't take any positional arguments"