mirror of
https://github.com/clearml/clearml-agent
synced 2025-04-28 09:51:53 +00:00
Fix build fails when target is relative path
This commit is contained in:
parent
4f17a2c17d
commit
b6d132b226
@ -1987,6 +1987,10 @@ class Worker(ServiceCommandSection):
|
|||||||
if not task_id:
|
if not task_id:
|
||||||
raise CommandFailedError("Worker build must have valid 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()
|
self._session.print_configuration()
|
||||||
|
|
||||||
if docker is not False and docker is not None:
|
if docker is not False and docker is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user