Fix standalone script with pre-exiting conda venv

This commit is contained in:
allegroai 2021-05-12 15:46:25 +03:00
parent ae3d034531
commit 4f7407084d

View File

@ -187,7 +187,7 @@ class LiteralScriptManager(object):
location = location or (repo_info and repo_info.root)
if not location:
location = Path(self.venv_folder, "code")
location.mkdir(exist_ok=True)
location.mkdir(exist_ok=True, parents=True)
log.debug("selected execution directory: %s", location)
return Text(location), self.write(task, location, execution.entry_point)