Skip to content

Commit

Permalink
Look for UF2 drives in additional spots on Linux (#37)
Browse files Browse the repository at this point in the history
Fixes #28
  • Loading branch information
earlephilhower committed May 7, 2021
1 parent 70a30dc commit f1e7799
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/uf2conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit f1e7799

Please sign in to comment.