Commit c02af18c authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

corrected bugs found when testing on cluster

parent 88d3ca93
......@@ -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)
......
Supports Markdown
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