Fix build fails when target is relative path

This commit is contained in:
allegroai 2023-02-05 10:33:32 +02:00
parent 4f17a2c17d
commit b6d132b226

View File

@ -1987,6 +1987,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()
if docker is not False and docker is not None: