mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix local task execution with empty working directory
This commit is contained in:
parent
427b98270c
commit
23c6ec6643
@ -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 ''
|
||||
|
Loading…
Reference in New Issue
Block a user