From 0d2b334f754a9db38ffe43e33f965eba8106c064 Mon Sep 17 00:00:00 2001 From: daid303 Date: Fri, 26 Oct 2012 15:53:34 +0200 Subject: [PATCH] Only list directories and never the main HD --- Cura/gui/preferencesDialog.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cura/gui/preferencesDialog.py b/Cura/gui/preferencesDialog.py index ab72978f..4bbf755f 100644 --- a/Cura/gui/preferencesDialog.py +++ b/Cura/gui/preferencesDialog.py @@ -91,5 +91,9 @@ def getDrives(): drives.append(letter + ':/') bitmask >>= 1 if platform.system() == "Darwin": - drives = glob.glob('/Volumes/*') + drives = [] + for volume in glob.glob('/Volumes/*/'): + if volume.endswith('/Macintosh HD/'): + continue + drives.append(volume) return drives -- 2.30.2