Look for UF2 drives in additional spots on Linux (#37)

Fixes #28
This commit is contained in:
Earle F. Philhower, III 2021-05-06 20:04:36 -07:00 committed by GitHub
parent 70a30dc219
commit f1e77995f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -236,6 +236,10 @@ def get_drives():
drives.append(words[0])
else:
rootpath = "/media"
if not os.path.isdir(rootpath):
rootpath = "/run/media"
if not os.path.isdir(rootpath):
rootpath = "/opt/media"
if sys.platform == "darwin":
rootpath = "/Volumes"
elif sys.platform == "linux":