Fix local task execution with empty working directory

This commit is contained in:
allegroai 2022-05-30 19:47:16 +03:00
parent 427b98270c
commit 23c6ec6643

View File

@ -605,7 +605,7 @@ class LocalClearmlJob(ClearmlJob):
else:
local_filename = self.task.data.script.entry_point
cwd = os.path.join(os.getcwd(), self.task.data.script.working_dir)
cwd = os.path.join(os.getcwd(), self.task.data.script.working_dir or '')
# try to check based on current root repo + entrypoint
if Task.current_task() and not (Path(cwd)/local_filename).is_file():
working_dir = Task.current_task().data.script.working_dir or ''