mirror of
https://github.com/clearml/clearml-agent
synced 2025-06-26 10:05:58 +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:
|
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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user