Skip to content

Commit

Permalink
Merge pull request #97 from slaclab/output_root_not_set_fix
Browse files Browse the repository at this point in the history
BUG: fix issue when running without output-root explicitly set
  • Loading branch information
nstelter-slac authored May 16, 2024
2 parents 3c051be + 423aaac commit 5db1854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calibrationSuite/basicSuiteScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def __init__(self, analysisType="scan"):
self.outputDir = self.args.path
# if set, output folders will be relative to OUTPUT_ROOT
# if not, they will be relative to the current script file
self.outputDir = os.getenv("OUTPUT_ROOT", "") + self.outputDir
self.outputDir = os.getenv("OUTPUT_ROOT", ".") + self.outputDir
# check if outputDir exists, if does not create it and tell user
if not os.path.exists(self.outputDir):
print("could not find output dir: " + self.outputDir)
Expand Down

0 comments on commit 5db1854

Please sign in to comment.