summaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-10-23 12:21:32 +1100
committerDrashna Jael're <drashna@live.com>2021-01-12 22:43:32 -0800
commit2e58be9e1486b556062f07b247fd4d229b559a15 (patch)
tree7635f39ab73d344c94943534f473e40d29f48ef4 /lib/python
parenta1b24056f35a74f926827c0100a138e403941022 (diff)
c2json: Fix TypeError on MSYS2 (#10709)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/qmk/commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py
index 5a6e60988a..4ec7d2ea53 100644
--- a/lib/python/qmk/commands.py
+++ b/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]