create the keymap path if it doesn't exist

This commit is contained in:
Zach White 2020-12-26 09:05:05 -08:00
parent 745e2298bc
commit af732776a5

View file

@ -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):