Explorar o código

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

Joel Challis %!s(int64=2) %!d(string=hai) anos
pai
achega
a98f69850f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      util/uf2conv.py

+ 3 - 0
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))