Skip to content
Snippets Groups Projects
Commit ccb209bd authored by Michael Langguth's avatar Michael Langguth
Browse files

Correcton to runscript template handling in config_utils.py.

parent 8f52c023
No related branches found
No related tags found
No related merge requests found
Pipeline #59693 passed
...@@ -36,7 +36,7 @@ class Config_runscript_base: ...@@ -36,7 +36,7 @@ class Config_runscript_base:
self.runscript_template = None self.runscript_template = None
self.runscript_target = None self.runscript_target = None
self.user = os.getenv("USER").strip() self.user = os.getenv("USER").strip()
self.suffix_template = "_template" + self.user + ".sh" self.suffix_template = "_template_" + self.user + ".sh"
# general to be expected attributes # general to be expected attributes
self.list_batch_vars = None self.list_batch_vars = None
self.dataset = None self.dataset = None
...@@ -83,7 +83,7 @@ class Config_runscript_base: ...@@ -83,7 +83,7 @@ class Config_runscript_base:
raise FileNotFoundError("%{0}: Cannot find '{1}' for converting runscript templates to executables." raise FileNotFoundError("%{0}: Cannot find '{1}' for converting runscript templates to executables."
.format(method_name, Config_runscript_base.runscript_converter)) .format(method_name, Config_runscript_base.runscript_converter))
# generate runscript... # generate runscript...
runscript_temp = os.path.join(self.runscript_dir, self.runscript_template).rstrip("_template.sh") runscript_temp = os.path.join(self.runscript_dir, self.runscript_template)
runscript_tar = os.path.join(self.runscript_dir, self.runscript_target) runscript_tar = os.path.join(self.runscript_dir, self.runscript_target)
cmd_gen = "{0} {1} {2}".format(Config_runscript_base.runscript_converter, runscript_temp, runscript_tar) cmd_gen = "{0} {1} {2}".format(Config_runscript_base.runscript_converter, runscript_temp, runscript_tar)
os.system(cmd_gen) os.system(cmd_gen)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment