Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jflow
Commits
79282e48
Commit
79282e48
authored
Feb 28, 2017
by
Floreal Cabanettes
Browse files
Remove buggy load module for python executions
parent
7135d97d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/weaver/function.py
View file @
79282e48
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment