From d6a113d9b3f9bc1d126bea0b838ef8b367b9066a Mon Sep 17 00:00:00 2001 From: Christopher Denter Date: Tue, 19 Apr 2011 17:20:19 +0200 Subject: [PATCH] filechooser: fix for win; correctly use splitdrive --- kivy/uix/filechooser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/uix/filechooser.py b/kivy/uix/filechooser.py index 1adc5cfb7..aaef703ed 100644 --- a/kivy/uix/filechooser.py +++ b/kivy/uix/filechooser.py @@ -216,7 +216,7 @@ class FileChooserController(FloatLayout): # Add the components that are always needed if platform == 'win32': - is_root = splitdrive()[1] in (sep, altsep) + is_root = splitdrive(self.path)[1] in (sep, altsep) elif platform in ('darwin', 'linux2'): is_root = normpath(expanduser(self.path)) == sep else: