Skip to content

Commit

Permalink
Avoid WindowsPath errors for 'qmk format-text' (qmk#24905)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored Feb 8, 2025
1 parent fa98117 commit 2699e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/qmk/cli/format/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2699e2f

Please sign in to comment.