diff options
author | Ryan Gambord <gambordr@oregonstate.edu> | 2019-04-06 23:37:24 -0700 |
---|---|---|
committer | Ryan Gambord <gambordr@oregonstate.edu> | 2019-04-08 08:25:26 +0000 |
commit | ca687eaab3f7117c9e2986e81afeaaee12cbcc63 (patch) | |
tree | c945d9f80fad132d4309505fbc019397e84ae729 /configs/example | |
parent | 2cf18a811044e5a67ff4a4f9d1c419b5673a698e (diff) | |
download | gem5-ca687eaab3f7117c9e2986e81afeaaee12cbcc63.tar.xz |
configs: Removed redudant exec-style import
garnet_synth_traffic.py imports common.Options on line 40, so exec'ing
the Options.py file again seems redundant.
It also runs Options.py as a script rather than a module, which throws
ValueError: Attempted relative import in non-package due to the recent
change to python3 imports.
Change-Id: Id729a8dfa776af0d14312e765168aff6900eb727
Signed-off-by: Ryan Gambord <gambordr@oregonstate.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17888
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'configs/example')
-rw-r--r-- | configs/example/garnet_synth_traffic.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/configs/example/garnet_synth_traffic.py b/configs/example/garnet_synth_traffic.py index 8396ddb2e..9878c23f1 100644 --- a/configs/example/garnet_synth_traffic.py +++ b/configs/example/garnet_synth_traffic.py @@ -88,9 +88,6 @@ parser.add_option("--inj-vnet", type="int", default=-1, # Ruby.define_options(parser) -exec(compile(open(os.path.join(config_root, "common", "Options.py")).read(), - os.path.join(config_root, "common", "Options.py"), 'exec')) - (options, args) = parser.parse_args() if args: |