mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 02:30:07 +00:00
c2json: Fix TypeError on MSYS2 (#10709)
This commit is contained in:
parent
168ce1a743
commit
f9bd9d3b26
1 changed files with 2 additions and 1 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue