Automated merge with ssh://repo.gem5.org/gem5
This commit is contained in:
commit
cfa1d26b43
1 changed files with 8 additions and 5 deletions
|
@ -31,7 +31,6 @@
|
|||
import atexit
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
|
||||
# import the SWIG-wrapped main C++ functions
|
||||
import internal
|
||||
|
@ -74,10 +73,14 @@ def instantiate(ckpt_dir=None):
|
|||
ini_file.close()
|
||||
|
||||
if options.json_config:
|
||||
try:
|
||||
import json
|
||||
json_file = file(os.path.join(options.outdir, options.json_config), 'w')
|
||||
d = root.get_config_as_dict()
|
||||
json.dump(d, json_file, indent=4)
|
||||
json_file.close()
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
# Initialize the global statistics
|
||||
|
|
Loading…
Reference in a new issue