diff options
Diffstat (limited to 'lib/python/qmk/cli/compile.py')
| -rwxr-xr-x | lib/python/qmk/cli/compile.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/compile.py b/lib/python/qmk/cli/compile.py index 23ca4e00a..7a45e7721 100755 --- a/lib/python/qmk/cli/compile.py +++ b/lib/python/qmk/cli/compile.py | |||
| @@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | You can compile a keymap already in the repo or using a QMK Configurator export. | 3 | You can compile a keymap already in the repo or using a QMK Configurator export. |
| 4 | """ | 4 | """ |
| 5 | from subprocess import DEVNULL | ||
| 6 | |||
| 5 | from argcomplete.completers import FilesCompleter | 7 | from argcomplete.completers import FilesCompleter |
| 6 | from milc import cli | 8 | from milc import cli |
| 7 | 9 | ||
| @@ -31,8 +33,7 @@ def compile(cli): | |||
| 31 | """ | 33 | """ |
| 32 | if cli.args.clean and not cli.args.filename and not cli.args.dry_run: | 34 | if cli.args.clean and not cli.args.filename and not cli.args.dry_run: |
| 33 | command = create_make_command(cli.config.compile.keyboard, cli.config.compile.keymap, 'clean') | 35 | command = create_make_command(cli.config.compile.keyboard, cli.config.compile.keymap, 'clean') |
| 34 | # FIXME(skullydazed/anyone): Remove text=False once milc 1.0.11 has had enough time to be installed everywhere. | 36 | cli.run(command, capture_output=False, stdin=DEVNULL) |
| 35 | cli.run(command, capture_output=False, text=False) | ||
| 36 | 37 | ||
| 37 | # Build the environment vars | 38 | # Build the environment vars |
| 38 | envs = {} | 39 | envs = {} |
