Merge pull request #2306 from Eigi/main

make function posix(path) in designspaceLib work with Windows UNC path
This commit is contained in:
Cosimo Lupo 2021-05-13 15:35:30 +01:00 committed by GitHub
commit 053ec9fbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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