소스 검색

c2json: Fix TypeError on MSYS2 (#10709)

Ryan 4 년 전
부모
커밋
f9bd9d3b26
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lib/python/qmk/commands.py

+ 2 - 1
lib/python/qmk/commands.py

@@ -79,7 +79,8 @@ def run(command, *args, **kwargs):
         raise TypeError('`command` must be a non-text sequence such as list or tuple.')
 
     if 'windows' in platform_id:
-        safecmd = map(shlex.quote, command)
+        safecmd = map(str, command)
+        safecmd = map(shlex.quote, safecmd)
         safecmd = ' '.join(safecmd)
         command = [os.environ['SHELL'], '-c', safecmd]