fix for issue #2299

translate leading backslashes of UNC path to forward slashes.
This commit is contained in:
Eigi 2021-05-09 18:59:34 +02:00
parent e0ef55ea4b
commit 84d77e5c3a

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