Browse Source

prism-auto: it's an error when file specified via -a/--args does not exist

master
Joachim Klein 8 years ago
parent
commit
c32cde62cf
  1. 5
      prism/etc/scripts/prism-auto

5
prism/etc/scripts/prism-auto

@ -753,7 +753,10 @@ def benchmark(file, args, dir=""):
modelFileArg = [file] if (file != "") else []
# Loop through benchmark options, if required
if options.bmFile and os.path.isfile(os.path.join(options.bmFile)):
if options.bmFile:
if not os.path.isfile(os.path.join(options.bmFile)):
print("Cannot read arguments from non-existing file: " + os.path.join(options.bmFile))
sys.exit(1)
argsLists = getArgsListsFromFile(options.bmFile)
for bmArgs in argsLists:
runPrism(modelFileArg + args + bmArgs, dir)

Loading…
Cancel
Save