diff options
| author | Joel Challis <git@zvecr.com> | 2025-02-08 12:17:35 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-08 12:17:35 +0000 |
| commit | 2699e2f7c826b0288c3dddcd86a97811726cf6a4 (patch) | |
| tree | e2ff5cf2269e3187833b83b73ccf5f11eab1bb9d | |
| parent | fa98117a3e10afed347f16b2614e4e8a9e26cd32 (diff) | |
Avoid WindowsPath errors for 'qmk format-text' (#24905)
| -rw-r--r-- | lib/python/qmk/cli/format/text.py | 2 |
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): | |||
| 18 | def dos2unix_run(files): | 18 | def dos2unix_run(files): |
| 19 | """Spawn multiple dos2unix subprocess avoiding too long commands on formatting everything | 19 | """Spawn multiple dos2unix subprocess avoiding too long commands on formatting everything |
| 20 | """ | 20 | """ |
| 21 | for chunk in _get_chunks(files, 10): | 21 | for chunk in _get_chunks([normpath(file).as_posix() for file in files], 10): |
| 22 | dos2unix = cli.run(['dos2unix', *chunk]) | 22 | dos2unix = cli.run(['dos2unix', *chunk]) |
| 23 | 23 | ||
| 24 | if dos2unix.returncode: | 24 | if dos2unix.returncode: |
