mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
fix(global): pathlib changed to pathlib2
This commit is contained in:
parent
5ace134b64
commit
b3321a92ee
1 changed files with 5 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ import errno
|
|||
import pyblish.api
|
||||
from avalon import api, io
|
||||
from avalon.vendor import filelink
|
||||
from pathlib import Path
|
||||
from pathlib2 import Path
|
||||
# this is needed until speedcopy for linux is fixed
|
||||
if sys.platform == "win32":
|
||||
from speedcopy import copyfile
|
||||
|
|
@ -469,8 +469,11 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
|||
Returns:
|
||||
None
|
||||
"""
|
||||
|
||||
src = Path(src).resolve()
|
||||
dst = Path(dst).resolve()
|
||||
drive, _path = os.path.splitdrive(dst)
|
||||
unc = Path(drive).resolve()
|
||||
dst = str(unc / _path)
|
||||
|
||||
self.log.debug("Copying file .. {} -> {}".format(src, dst))
|
||||
dirname = os.path.dirname(dst)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue