Skip to content

Commit

Permalink
BUG: fix issue when running without output-root explicitly set, shoul…
Browse files Browse the repository at this point in the history
…d use curr folder as root
  • Loading branch information
nstelter-slac committed May 16, 2024
1 parent 111acd1 commit 423aaac
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 423aaac

Please sign in to comment.