Commit 0d81da89 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 61c85434
......@@ -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." +
......
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