filechooser: fix for win; correctly use splitdrive

This commit is contained in:
Christopher Denter 2011-04-19 17:20:19 +02:00
parent 89e11c3073
commit d6a113d9b3
1 changed files with 1 additions and 1 deletions

View File

@ -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: