From ff0dbafe7a7e00b9cc3702756cb869f415dd27b9 Mon Sep 17 00:00:00 2001 From: zvecr Date: Thu, 30 Jun 2022 19:27:28 +0100 Subject: [PATCH] Also check /run/media/ for uf2 drives --- util/uf2conv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/uf2conv.py b/util/uf2conv.py index df94b5ac9964..7f5645414a2d 100755 --- a/util/uf2conv.py +++ b/util/uf2conv.py @@ -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))