diff options
author | QMK Bot <hello@qmk.fm> | 2019-11-16 07:10:19 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2019-11-16 07:10:19 +0000 |
commit | 7891de7f6d64431cedbd580a3f7863533dc8be88 (patch) | |
tree | a4fc89d7821126c1d101cf7acea75efcecdbc7a9 /lib/python/qmk/commands.py | |
parent | 897888db419239f013561b155de5993b1966820e (diff) | |
download | qmk_firmware-7891de7f6d64431cedbd580a3f7863533dc8be88.tar.gz |
format code according to conventions [skip ci]
Diffstat (limited to 'lib/python/qmk/commands.py')
-rw-r--r-- | lib/python/qmk/commands.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py index 9fbf00f16..f83a89578 100644 --- a/lib/python/qmk/commands.py +++ b/lib/python/qmk/commands.py @@ -3,6 +3,7 @@ import json import qmk.keymap + def create_make_command(keyboard, keymap, target=None): """Create a make compile command @@ -23,6 +24,7 @@ def create_make_command(keyboard, keymap, target=None): return ['make', ':'.join((keyboard, keymap))] return ['make', ':'.join((keyboard, keymap, target))] + def parse_configurator_json(configurator_filename): """Open and parse a configurator json export """ @@ -31,6 +33,7 @@ def parse_configurator_json(configurator_filename): file.close() return user_keymap + def compile_configurator_json(configurator_filename, bootloader=None): """Convert a configurator export JSON file into a C file @@ -54,4 +57,3 @@ def compile_configurator_json(configurator_filename, bootloader=None): if bootloader is None: return create_make_command(user_keymap['keyboard'], user_keymap['keymap']) return create_make_command(user_keymap['keyboard'], user_keymap['keymap'], bootloader) - |