Skip to content
GitLab
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
0d81da89
Commit
0d81da89
authored
Mar 08, 2013
by
Jerome Mariette
Browse files
No commit message
No commit message
parent
61c85434
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jflow/workflow.py
View file @
0d81da89
...
...
@@ -27,7 +27,7 @@ import threading
from
ConfigParser
import
ConfigParser
,
NoOptionError
import
types
import
jflow
.components
import
jflow
import
jflow.utils
as
utils
from
jflow.workflows_manager
import
WorkflowsManager
,
JFlowConfigReader
from
jflow.parameter
import
Parameter
,
date
...
...
@@ -383,12 +383,6 @@ class Workflow(threading.Thread):
def
_import_components
(
self
):
pckge
=
{}
# first import global packages
for
importer
,
modname
,
ispkg
in
pkgutil
.
iter_modules
(
jflow
.
components
.
__path__
,
jflow
.
components
.
__name__
+
"."
):
m
=
__import__
(
modname
)
for
class_name
,
obj
in
inspect
.
getmembers
(
sys
.
modules
[
modname
],
inspect
.
isclass
):
if
issubclass
(
obj
,
jflow
.
component
.
Component
)
and
obj
.
__name__
!=
jflow
.
component
.
Component
.
__name__
:
pckge
[
class_name
]
=
modname
# then import pipeline packages
pipeline_dir
=
os
.
path
.
dirname
(
inspect
.
getfile
(
self
.
__class__
))
for
importer
,
modname
,
ispkg
in
pkgutil
.
iter_modules
([
os
.
path
.
join
(
pipeline_dir
,
"components"
)],
"workflows."
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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