Browse Source

Also check /run/media/ for uf2 drives (#17517)

pull/17533/head
Joel Challis 1 year ago
committed by GitHub
parent
commit
a98f69850f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      util/uf2conv.py

+ 3
- 0
util/uf2conv.py View File

@ -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))


Loading…
Cancel
Save