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 committed Jun 30, 2022
1 parent e5a15f4 commit a98f698
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 a98f698

Please sign in to comment.