Browse Source

c2json: Fix TypeError on MSYS2 (#10709)

pull/10731/head
Ryan 3 years ago
committed by GitHub
parent
commit
f9bd9d3b26
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lib/python/qmk/commands.py

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

@ -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…
Cancel
Save