aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2025-02-08 12:17:35 +0000
committerGitHub <[email protected]>2025-02-08 12:17:35 +0000
commit2699e2f7c826b0288c3dddcd86a97811726cf6a4 (patch)
treee2ff5cf2269e3187833b83b73ccf5f11eab1bb9d /lib
parentfa98117a3e10afed347f16b2614e4e8a9e26cd32 (diff)
downloadqmk_firmware-2699e2f7c826b0288c3dddcd86a97811726cf6a4.tar.gz
qmk_firmware-2699e2f7c826b0288c3dddcd86a97811726cf6a4.zip
Avoid WindowsPath errors for 'qmk format-text' (#24905)
Diffstat (limited to 'lib')
-rw-r--r--lib/python/qmk/cli/format/text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/format/text.py b/lib/python/qmk/cli/format/text.py
index 6dd4511896..344631081b 100644
--- a/lib/python/qmk/cli/format/text.py
+++ b/lib/python/qmk/cli/format/text.py
@@ -18,7 +18,7 @@ def _get_chunks(it, size):
def dos2unix_run(files):
"""Spawn multiple dos2unix subprocess avoiding too long commands on formatting everything
"""
- for chunk in _get_chunks(files, 10):
+ for chunk in _get_chunks([normpath(file).as_posix() for file in files], 10):
dos2unix = cli.run(['dos2unix', *chunk])
if dos2unix.returncode: