Merge pull request #2306 from Eigi/main
make function posix(path) in designspaceLib work with Windows UNC path
This commit is contained in:
commit
053ec9fbe0
@ -33,6 +33,9 @@ def posix(path):
|
||||
if path.startswith('/'):
|
||||
# The above transformation loses absolute paths
|
||||
new_path = '/' + new_path
|
||||
elif path.startswith(r'\\'):
|
||||
# The above transformation loses leading slashes of UNC path mounts
|
||||
new_path = '//' + new_path
|
||||
return new_path
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user