mirror of
https://github.com/python/cpython.git
synced 2025-08-16 23:01:34 +00:00
Issue #6470: Drop UNC prefix in FixTk.py
Patch by Christop Gohlke and Amaury Forgeot d'Arc.
This commit is contained in:
parent
16b2a5e0a9
commit
eba67c0eac
3 changed files with 29 additions and 0 deletions
|
@ -42,6 +42,8 @@ else:
|
|||
# Ignore leading \\?\
|
||||
if s.startswith("\\\\?\\"):
|
||||
s = s[4:]
|
||||
if s.startswith("UNC"):
|
||||
s = "\\" + s[3:]
|
||||
return s
|
||||
|
||||
prefix = os.path.join(sys.prefix,"tcl")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue