chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7119eb4
)
Only list directories and never the main HD
author
daid303
<daid303@gmail.com>
Fri, 26 Oct 2012 13:53:34 +0000
(15:53 +0200)
committer
daid303
<daid303@gmail.com>
Fri, 26 Oct 2012 13:53:34 +0000
(15:53 +0200)
Cura/gui/preferencesDialog.py
patch
|
blob
|
history
diff --git
a/Cura/gui/preferencesDialog.py
b/Cura/gui/preferencesDialog.py
index ab72978f36ec2116a10b2fd63ba3b5ccc9423139..4bbf755f14bacdf45980511a9429eb88cb549523 100644
(file)
--- a/
Cura/gui/preferencesDialog.py
+++ b/
Cura/gui/preferencesDialog.py
@@
-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