summaryrefslogtreecommitdiff
path: root/lib/python/qmk/commands.py
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2019-11-16 07:10:19 +0000
committerFlorian Didron <fdidron@users.noreply.github.com>2020-01-09 08:57:11 +0900
commit6f57ecc58e85fd9bb6eba7d2b4f7a1e07b9f64bb (patch)
treef5f636294591091b35a522dd46a9256e874b5a67 /lib/python/qmk/commands.py
parentd459da0c9587a1e86d86d4773e5acd7dbbc9da9a (diff)
format code according to conventions [skip ci]
Diffstat (limited to 'lib/python/qmk/commands.py')
-rw-r--r--lib/python/qmk/commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/commands.py b/lib/python/qmk/commands.py
index 9fbf00f165..f83a89578e 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)
-