Skip to content

Commit 36921a1

Browse files
committed
fix function import
1 parent 7717fb8 commit 36921a1

File tree

1 file changed

+1
-1
lines changed
  • python_workflow_definition/src/python_workflow_definition/cwl

1 file changed

+1
-1
lines changed

python_workflow_definition/src/python_workflow_definition/cwl/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def convert_argument(arg):
2929
workflow_function = load_function(file_name=file_lst[0], funct=funct_lst[0])
3030
else:
3131
m, p = funct_lst[0].rsplit(".", 1)
32-
workflow_function = importlib.import_module(m)
32+
workflow_function = getattr(importlib.import_module(m), p)
3333
kwargs = {
3434
arg.split("=")[0][6:]: convert_argument(arg=arg.split("=")[-1])
3535
for arg in argument_lst

0 commit comments

Comments
 (0)