Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1.2 and tip

stable paths: fix netdrive_status() to handle lowercase path correctly

os.path.splitdrive() may return drive letter in lowercase.

Changeset 10976018a45f

Parent 5fe1a71fa68b

by Yuya Nishihara

Changes to one file · Browse files at 10976018a45f Showing diff from parent 5fe1a71fa68b Diff from another changeset...

 
96
97
98
99
 
100
101
102
 
96
97
98
 
99
100
101
102
@@ -96,7 +96,7 @@
  unc, rest = os.path.splitunc(drive)   if unc: # All UNC paths (\\host\mount) are considered nonlocal   return True - letter = os.path.splitdrive(drive)[0] + letter = os.path.splitdrive(drive)[0].upper()   _drives, total, _ = win32net.NetUseEnum(None, 1, 0)   for drv in _drives:   if drv['local'] == letter: