Commit 79282e48 authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Remove buggy load module for python executions

parent 7135d97d
......@@ -286,17 +286,8 @@ if __name__ == '__main__':
path = ""
for apath in add_path:
path += "sys.path.insert(0, '" + apath + "')\n"
modules_cmd = ""
modules_unload_cmd = ""
if len(modules) > 0:
for module in modules:
modules_cmd += "module load " + module + "; "
modules_unload_cmd += "module unload" + module + "; "
modules_cmd = "os.system(" + modules_cmd + ")"
modules_unload_cmd = "os.system(" + modules_unload_cmd + ")"
source = self.PYTHON_TEMPLATE.format(', '.join(imports), path, body, name, modules_cmd, modules_unload_cmd)
source = self.PYTHON_TEMPLATE.format(', '.join(imports), path, body, name)
ScriptFunction.__init__(self, source, executable, cmd_format)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment