diff options
| author | QMK Bot <hello@qmk.fm> | 2021-02-28 20:19:42 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-02-28 20:19:42 +0000 |
| commit | 80e8e20a8965da5934f74141291c6c5d805774c6 (patch) | |
| tree | 0633fc2addeaee7afd52e3401cd06efa92b4c65b /lib/python/qmk/cli/c2json.py | |
| parent | 0efafdd408f31c39dd1b9a5e0ef356bc84a50243 (diff) | |
| parent | 59c7deab0931207016315636ae1ef74c2c54dd18 (diff) | |
| download | qmk_firmware-80e8e20a8965da5934f74141291c6c5d805774c6.tar.gz qmk_firmware-80e8e20a8965da5934f74141291c6c5d805774c6.zip | |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/cli/c2json.py')
| -rw-r--r-- | lib/python/qmk/cli/c2json.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/c2json.py b/lib/python/qmk/cli/c2json.py index 8f9d8dc38..b9d55ebdb 100644 --- a/lib/python/qmk/cli/c2json.py +++ b/lib/python/qmk/cli/c2json.py | |||
| @@ -47,7 +47,7 @@ def c2json(cli): | |||
| 47 | if cli.args.output: | 47 | if cli.args.output: |
| 48 | cli.args.output.parent.mkdir(parents=True, exist_ok=True) | 48 | cli.args.output.parent.mkdir(parents=True, exist_ok=True) |
| 49 | if cli.args.output.exists(): | 49 | if cli.args.output.exists(): |
| 50 | cli.args.output.replace(cli.args.output.name + '.bak') | 50 | cli.args.output.replace(cli.args.output.parent / (cli.args.output.name + '.bak')) |
| 51 | cli.args.output.write_text(json.dumps(keymap_json, cls=InfoJSONEncoder)) | 51 | cli.args.output.write_text(json.dumps(keymap_json, cls=InfoJSONEncoder)) |
| 52 | 52 | ||
| 53 | if not cli.args.quiet: | 53 | if not cli.args.quiet: |
