mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
hotfix/pathlib in integration
This commit is contained in:
parent
6c2ce5be0b
commit
cc4857a5d8
1 changed files with 4 additions and 2 deletions
|
|
@ -470,7 +470,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
None
|
||||
"""
|
||||
|
||||
src = Path(src).resolve()
|
||||
src = str(Path(src).resolve())
|
||||
drive, _path = os.path.splitdrive(dst)
|
||||
unc = Path(drive).resolve()
|
||||
dst = str(unc / _path)
|
||||
|
|
@ -495,7 +495,9 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
def hardlink_file(self, src, dst):
|
||||
dirname = os.path.dirname(dst)
|
||||
src = Path(src).resolve()
|
||||
dst = Path(dst).resolve()
|
||||
drive, _path = os.path.splitdrive(dst)
|
||||
unc = Path(drive).resolve()
|
||||
dst = str(unc / _path)
|
||||
try:
|
||||
os.makedirs(dirname)
|
||||
except OSError as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue