aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/path.py
diff options
context:
space:
mode:
authorGravatar Kenny Hoang <kenny.hoang87@gmail.com>2019-09-10 08:14:25 -0400
committerGravatar skullydazed <skullydazed@users.noreply.github.com>2019-09-10 05:14:25 -0700
commit595232ec989499d0ee0b8db0b55f6e8ca418c786 (patch)
tree094103690c89fda5f47aaa810fbb2b01ef0d2c08 /lib/python/qmk/path.py
parent2e521b509ce0c853b2e62d1d16e0117b900ab9c2 (diff)
downloadqmk_firmware-595232ec989499d0ee0b8db0b55f6e8ca418c786.tar.gz
Created new_keymap.py, python version of new_keymap.sh (#6066)
* Created python version of new_keymap.sh: new_keymap.py * Updated usage message * Updated new_keymap.py to use python3.5+ syntax & be more similar to new_keyboard.sh * Updated complete message * Updated usage in argparser and removed incorrect usage_message * Reverted the fstrings back to strings that use .format() & updated docstring convention * Added helper to recursively cd .. until at qmk_firmware root directory * Revert "Added helper to recursively cd .. until at qmk_firmware root directory" This reverts commit 61a0ff3b25f91901287bec8d58eb51a1f126e2ad. * Updated new_keymap.py to use printf-style format strings * First draft lib/python/qmk/cli/new/keymap.py with milc * Removed shebang & syspath appending lines * Added optional args & resolved some cr comemnts * Added a docstring and updated strings
Diffstat (limited to 'lib/python/qmk/path.py')
-rw-r--r--lib/python/qmk/path.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/qmk/path.py b/lib/python/qmk/path.py
index f2a8346a5..cf087265f 100644
--- a/lib/python/qmk/path.py
+++ b/lib/python/qmk/path.py
@@ -1,7 +1,10 @@
"""Functions that help us work with files and folders.
"""
+import logging
import os
+from qmk.errors import NoSuchKeyboardError
+
def keymap(keyboard):
"""Locate the correct directory for storing a keymap.