mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-19 03:36:28 +00:00
create the keymap path if it doesn't exist
This commit is contained in:
parent
745e2298bc
commit
af732776a5
1 changed files with 3 additions and 2 deletions
|
@ -50,8 +50,9 @@ def keymap(keyboard_name):
|
|||
|
||||
keyboard_folder = keyboard_folder.parent
|
||||
|
||||
logging.error('Could not find the keymaps directory!')
|
||||
raise NoSuchKeyboardError('Could not find keymaps directory for: %s' % keyboard_name)
|
||||
keyboard_folder = keyboard(keyboard_name) / 'keymaps'
|
||||
logging.debug('Could not find the keymaps directory, creating as %s', keyboard_folder)
|
||||
keyboard_folder.mkdir(parents=True)
|
||||
|
||||
|
||||
def normpath(path):
|
||||
|
|
Loading…
Reference in a new issue