Răsfoiți Sursa

Avoid WindowsPath errors for 'qmk format-text' (#24905)

Joel Challis 1 an în urmă
părinte
comite
2699e2f7c8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      lib/python/qmk/cli/format/text.py

+ 1 - 1
lib/python/qmk/cli/format/text.py

@@ -18,7 +18,7 @@ def _get_chunks(it, size):
 def dos2unix_run(files):
 def dos2unix_run(files):
     """Spawn multiple dos2unix subprocess avoiding too long commands on formatting everything
     """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])
         dos2unix = cli.run(['dos2unix', *chunk])
 
 
         if dos2unix.returncode:
         if dos2unix.returncode: