chiark / gitweb /
Only list directories and never the main HD
authordaid303 <daid303@gmail.com>
Fri, 26 Oct 2012 13:53:34 +0000 (15:53 +0200)
committerdaid303 <daid303@gmail.com>
Fri, 26 Oct 2012 13:53:34 +0000 (15:53 +0200)
Cura/gui/preferencesDialog.py

index ab72978f36ec2116a10b2fd63ba3b5ccc9423139..4bbf755f14bacdf45980511a9429eb88cb549523 100644 (file)
@@ -91,5 +91,9 @@ def getDrives():
                                drives.append(letter + ':/')\r
                        bitmask >>= 1\r
        if platform.system() == "Darwin":\r
-               drives = glob.glob('/Volumes/*')\r
+               drives = []\r
+               for volume in glob.glob('/Volumes/*/'):\r
+                       if volume.endswith('/Macintosh HD/'):\r
+                               continue\r
+                       drives.append(volume)\r
        return drives\r