Merge branch 'hotfix/mixed_unc_and_mapped_paths'

This commit is contained in:
Milan Kolar 2019-11-07 18:40:44 +01:00
commit c5aa17583e
2 changed files with 5 additions and 0 deletions

View file

@ -565,6 +565,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
source = instance.data['source']
except KeyError:
source = context.data["currentFile"]
source = source.replace(os.getenv("PYPE_STUDIO_PROJECTS_MOUNT"),
api.registered_root())
relative_path = os.path.relpath(source, api.registered_root())
source = os.path.join("{root}", relative_path).replace("\\", "/")

View file

@ -276,6 +276,9 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
except KeyError:
source = context.data["currentFile"]
source = source.replace(os.getenv("PYPE_STUDIO_PROJECTS_MOUNT"),
api.registered_root())
relative_path = os.path.relpath(source, api.registered_root())
source = os.path.join("{root}", relative_path).replace("\\", "/")