mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-10 05:59:44 +00:00
Also check /run/media/ for uf2 drives (#17517)
This commit is contained in:
parent
e5a15f404d
commit
a98f69850f
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue