1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Changed the condition for the perception of the network path

This commit is contained in:
Valery Sinelnikov 2022-07-06 11:59:57 +04:00
parent 020e5f3128
commit baba56465c

View File

@ -91,7 +91,7 @@ class UNCPath:
self.type = None
if self.path.startswith(r'smb://'):
self.type = 'uri'
if self.path.startswith(r'\\'):
if self.path.startswith(r'\\') or self.path.startswith(r'//'):
self.type = 'unc'
if not self.type:
raise NotUNCPathError(path)