We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9554c9 commit ad57e17Copy full SHA for ad57e17
python_workflow_definition/src/python_workflow_definition/cwl/__main__.py
@@ -5,10 +5,13 @@
5
6
7
def load_function(file_name, funct):
8
- spec = importlib.util.spec_from_file_location("workflow", file_name)
9
- module = importlib.util.module_from_spec(spec)
10
- sys.modules["workflow"] = module
11
- spec.loader.exec_module(module)
+ if file_name.split("/")[-1] != "python_workflow_definition.py":
+ spec = importlib.util.spec_from_file_location("workflow", file_name)
+ module = importlib.util.module_from_spec(spec)
+ sys.modules["workflow"] = module
12
+ spec.loader.exec_module(module)
13
+ else:
14
+ module = importlib.import_module("python_workflow_definition.shared")
15
return getattr(module, funct.split(".")[-1])
16
17
0 commit comments