diff options
author | Joel Challis <[email protected]> | 2024-07-17 20:31:18 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-17 20:31:18 +0100 |
commit | 63ef6516d31149a01df1694907425a99e06e8bcc (patch) | |
tree | 0731ec75619e97ed0f1c167fc84254af760e1071 /lib/python/qmk | |
parent | 522bf1daf25222fc9cc88a906d2b726e447909ce (diff) | |
download | qmk_firmware-63ef6516d31149a01df1694907425a99e06e8bcc.tar.gz qmk_firmware-63ef6516d31149a01df1694907425a99e06e8bcc.zip |
Avoid path issues with `qmk flash` on Windows (#24130)
Diffstat (limited to 'lib/python/qmk')
-rw-r--r-- | lib/python/qmk/flashers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/python/qmk/flashers.py b/lib/python/qmk/flashers.py index 9ecb5e4b9c..7ee1bc8de7 100644 --- a/lib/python/qmk/flashers.py +++ b/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) |