Skip to content

Commit

Permalink
Also check /run/media/ for uf2 drives (qmk#17517)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and zykrah committed Jul 2, 2022
1 parent a879869 commit 6026194
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/uf2conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def get_drives():
tmp = rootpath + "/" + os.environ["USER"]
if os.path.isdir(tmp):
rootpath = tmp
tmp = "/run" + rootpath + "/" + os.environ["USER"]
if os.path.isdir(tmp):
rootpath = tmp
for d in os.listdir(rootpath):
drives.append(os.path.join(rootpath, d))

Expand Down

0 comments on commit 6026194

Please sign in to comment.