normalize path from get_workdir where needed

This commit is contained in:
Jakub Trllo 2022-07-20 09:47:54 +02:00
parent 7fbbc0ef2d
commit fca8030092
2 changed files with 5 additions and 2 deletions

View file

@ -324,5 +324,7 @@ class IntegrateBatchGroup(pyblish.api.InstancePlugin):
project_doc = instance.data["projectEntity"]
asset_entity = instance.data["assetEntity"]
return get_workdir(
project_doc, asset_entity, task_data["name"], "flame")
workdir = get_workdir(
project_doc, asset_entity, task_data["name"], "flame"
)
return os.path.normpath(workdir)

View file

@ -1638,6 +1638,7 @@ def prepare_context_environments(data, env_group=None):
"Error in anatomy.format: {}".format(str(exc))
)
workdir = os.path.normpath(workdir)
if not os.path.exists(workdir):
log.debug(
"Creating workdir folder: \"{}\"".format(workdir)