fix for issue #2299
translate leading backslashes of UNC path to forward slashes.
This commit is contained in:
parent
e0ef55ea4b
commit
84d77e5c3a
@ -33,6 +33,9 @@ def posix(path):
|
|||||||
if path.startswith('/'):
|
if path.startswith('/'):
|
||||||
# The above transformation loses absolute paths
|
# The above transformation loses absolute paths
|
||||||
new_path = '/' + new_path
|
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
|
return new_path
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user