mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
make sure we're not comparing mounted to UNC path in integrator.
This commit is contained in:
parent
f3549af450
commit
e99df15b1a
2 changed files with 5 additions and 0 deletions
|
|
@ -565,6 +565,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
source = instance.data['source']
|
source = instance.data['source']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
source = context.data["currentFile"]
|
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())
|
relative_path = os.path.relpath(source, api.registered_root())
|
||||||
source = os.path.join("{root}", relative_path).replace("\\", "/")
|
source = os.path.join("{root}", relative_path).replace("\\", "/")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -276,6 +276,9 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
source = context.data["currentFile"]
|
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())
|
relative_path = os.path.relpath(source, api.registered_root())
|
||||||
source = os.path.join("{root}", relative_path).replace("\\", "/")
|
source = os.path.join("{root}", relative_path).replace("\\", "/")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue