stats: fix usage of jobfile
This commit is contained in:
parent
26c70ce2cb
commit
5738dc3400
1 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,6 @@
|
||||||
#
|
#
|
||||||
# Authors: Nathan Binkert
|
# Authors: Nathan Binkert
|
||||||
|
|
||||||
from __future__ import division
|
|
||||||
import re, sys, math
|
import re, sys, math
|
||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
|
@ -413,7 +412,6 @@ class Options: pass
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import getpass
|
import getpass
|
||||||
from jobfile import JobFile
|
|
||||||
|
|
||||||
options = Options()
|
options = Options()
|
||||||
options.host = None
|
options.host = None
|
||||||
|
@ -426,7 +424,7 @@ if __name__ == '__main__':
|
||||||
options.graph = False
|
options.graph = False
|
||||||
options.ticks = False
|
options.ticks = False
|
||||||
options.printmode = 'G'
|
options.printmode = 'G'
|
||||||
jobfilename = 'Test.py'
|
jobfilename = None
|
||||||
options.jobfile = None
|
options.jobfile = None
|
||||||
options.all = False
|
options.all = False
|
||||||
|
|
||||||
|
@ -463,6 +461,7 @@ if __name__ == '__main__':
|
||||||
options.ticks = a
|
options.ticks = a
|
||||||
|
|
||||||
if jobfilename:
|
if jobfilename:
|
||||||
|
from jobfile import JobFile
|
||||||
options.jobfile = JobFile(jobfilename)
|
options.jobfile = JobFile(jobfilename)
|
||||||
if not options.host:
|
if not options.host:
|
||||||
options.host = options.jobfile.dbhost
|
options.host = options.jobfile.dbhost
|
||||||
|
|
Loading…
Reference in a new issue