mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
parent
74d52bbd1c
commit
b34c0e8eb7
1 changed files with 6 additions and 2 deletions
|
@ -48,9 +48,13 @@ class WindowsRemovableDrivePlugin(RemovableDrivePlugin.RemovableDrivePlugin):
|
||||||
drives = {}
|
drives = {}
|
||||||
|
|
||||||
bitmask = ctypes.windll.kernel32.GetLogicalDrives()
|
bitmask = ctypes.windll.kernel32.GetLogicalDrives()
|
||||||
# Check possible drive letters, from A to Z
|
# Check possible drive letters, from C to Z
|
||||||
# Note: using ascii_uppercase because we do not want this to change with locale!
|
# Note: using ascii_uppercase because we do not want this to change with locale!
|
||||||
for letter in string.ascii_uppercase:
|
# Skip A and B, since those drives are typically reserved for floppy disks.
|
||||||
|
# Those drives can theoretically be reassigned but it's safer to not check them for removable drives.
|
||||||
|
# Windows will also behave weirdly even with some of its internal functions if you do this (e.g. search indexing doesn't search it).
|
||||||
|
# Users that have removable drives in A or B will just have to save to file and select the drive there.
|
||||||
|
for letter in string.ascii_uppercase[2:]:
|
||||||
drive = "{0}:/".format(letter)
|
drive = "{0}:/".format(letter)
|
||||||
|
|
||||||
# Do we really want to skip A and B?
|
# Do we really want to skip A and B?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue