Browse Source

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 2 years ago
parent
commit
e69be076fc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/python/qmk/flashers.py

+ 2 - 0
lib/python/qmk/flashers.py

@@ -206,6 +206,8 @@ def _flash_uf2(file):
 
 
 def flasher(mcu, file):
+    # Avoid "expected string or bytes-like object, got 'WindowsPath" issues
+    file = file.as_posix()
     bl, details = _find_bootloader()
     # Add a small sleep to avoid race conditions
     time.sleep(1)