mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +00:00
Fix build fails when target is relative path
This commit is contained in:
parent
4f17a2c17d
commit
b6d132b226
@ -1986,6 +1986,10 @@ class Worker(ServiceCommandSection):
|
||||
):
|
||||
if not task_id:
|
||||
raise CommandFailedError("Worker build must have valid task id")
|
||||
|
||||
if target and not os.path.isabs(target):
|
||||
# Non absolute target path will lead to errors with relative python executable
|
||||
target = os.path.abspath(target)
|
||||
|
||||
self._session.print_configuration()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user