From 423aaac24fd6b8db2e48a0b561ff8401ccb73325 Mon Sep 17 00:00:00 2001 From: nstelter-slac Date: Thu, 16 May 2024 08:06:11 -0700 Subject: [PATCH] BUG: fix issue when running without output-root explicitly set, should use curr folder as root --- calibrationSuite/basicSuiteScript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibrationSuite/basicSuiteScript.py b/calibrationSuite/basicSuiteScript.py index 0fb62fa..c831070 100755 --- a/calibrationSuite/basicSuiteScript.py +++ b/calibrationSuite/basicSuiteScript.py @@ -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)