mirror of https://github.com/kivy/kivy.git
filechooser: fix for win; correctly use splitdrive
This commit is contained in:
parent
89e11c3073
commit
d6a113d9b3
|
@ -216,7 +216,7 @@ class FileChooserController(FloatLayout):
|
||||||
|
|
||||||
# Add the components that are always needed
|
# Add the components that are always needed
|
||||||
if platform == 'win32':
|
if platform == 'win32':
|
||||||
is_root = splitdrive()[1] in (sep, altsep)
|
is_root = splitdrive(self.path)[1] in (sep, altsep)
|
||||||
elif platform in ('darwin', 'linux2'):
|
elif platform in ('darwin', 'linux2'):
|
||||||
is_root = normpath(expanduser(self.path)) == sep
|
is_root = normpath(expanduser(self.path)) == sep
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue