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
aa33296e
Commit
aa33296e
authored
Mar 09, 2017
by
Floreal Cabanettes
Browse files
Fix: prevent to add lib dir multiple times to python path
parent
964d257f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/component.py
View file @
aa33296e
...
...
@@ -575,7 +575,9 @@ class Component(object):
add_path
=
list
(),
collect
=
False
,
local
=
False
,
map
=
False
,
cmd_format
=
""
):
workflow_dir
=
Path
(
os
.
path
.
dirname
(
inspect
.
getfile
(
self
.
__class__
))).
parent
add_path
.
append
(
str
(
workflow_dir
)
+
os
.
path
.
sep
+
"lib"
)
lib_dir
=
str
(
workflow_dir
)
+
os
.
path
.
sep
+
"lib"
if
not
lib_dir
in
add_path
:
add_path
.
append
(
lib_dir
)
if
map
:
if
not
issubclass
(
inputs
.
__class__
,
list
)
or
not
issubclass
(
outputs
.
__class__
,
list
):
...
...
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