summaryrefslogtreecommitdiff
path: root/lib/python/qmk/commands.py
diff options
context:
space:
mode:
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)
-