Browse Source

create the keymap path if it doesn't exist

pull/11314/head
Zach White 3 years ago
parent
commit
af732776a5
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      lib/python/qmk/path.py

+ 3
- 2
lib/python/qmk/path.py 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):


Loading…
Cancel
Save