diff --git a/execution-frameworks/contrib/python/runner.py b/execution-frameworks/contrib/python/runner.py index 4e84bda6..53b16fed 100644 --- a/execution-frameworks/contrib/python/runner.py +++ b/execution-frameworks/contrib/python/runner.py @@ -394,6 +394,11 @@ def execute_command(launcher, command, cwd): # We skip empty lines. This is due to the split just above. if comm == "": continue + + # Replace instances of PathToAtomicsFolder + atomics = os.path.join(cwd,"..") + comm = comm.replace("$PathToAtomicsFolder", atomics) + comm = comm.replace("PathToAtomicsFolder", atomics) # # We actually run the command itself. p = subprocess.Popen(launcher, shell=False, stdin=subprocess.PIPE, stdout=subprocess.PIPE,