Skip to content
Snippets Groups Projects
Commit c02af18c authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

corrected bugs found when testing on cluster

parent 88d3ca93
No related branches found
No related tags found
No related merge requests found
......@@ -256,7 +256,6 @@ def func_to_cmd(func, args, kwargs, tmp_dir=None, clean=False):
:return: string which will run the function
"""
pickle_bytes = BytesIO()
pickle.dump((func.__module__, func.__name__, args, kwargs), pickle_bytes)
if func.__module__ == '__main__':
pickle.dump(('script', importlib.import_module('__main__').__file__, func.__name__,
args, kwargs), pickle_bytes)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment