diff options
| author | Ryan <fauxpark@gmail.com> | 2020-10-23 12:21:32 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 12:21:32 +1100 |
| commit | f9bd9d3b269ef0e1be9189b2395350e2062fe4d0 (patch) | |
| tree | 08ef96502537c570ec1d2fb1bc04b5c1ad00e87f /lib | |
| parent | 168ce1a743a905ae4a77309277b250d84dd70392 (diff) | |
| download | qmk_firmware-f9bd9d3b269ef0e1be9189b2395350e2062fe4d0.tar.gz qmk_firmware-f9bd9d3b269ef0e1be9189b2395350e2062fe4d0.zip | |
c2json: Fix TypeError on MSYS2 (#10709)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/qmk/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 5a6e60988..4ec7d2ea5 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py | |||
| @@ -79,7 +79,8 @@ def run(command, *args, **kwargs): | |||
| 79 | raise TypeError('`command` must be a non-text sequence such as list or tuple.') | 79 | raise TypeError('`command` must be a non-text sequence such as list or tuple.') |
| 80 | 80 | ||
| 81 | if 'windows' in platform_id: | 81 | if 'windows' in platform_id: |
| 82 | safecmd = map(shlex.quote, command) | 82 | safecmd = map(str, command) |
| 83 | safecmd = map(shlex.quote, safecmd) | ||
| 83 | safecmd = ' '.join(safecmd) | 84 | safecmd = ' '.join(safecmd) |
| 84 | command = [os.environ['SHELL'], '-c', safecmd] | 85 | command = [os.environ['SHELL'], '-c', safecmd] |
| 85 | 86 | ||
