Fix the path for generated keymaps (#9213)
This commit is contained in:
parent
4ee623fdd5
commit
a5e749d8cd
2 changed files with 5 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
|||
"""
|
||||
from pathlib import Path
|
||||
|
||||
from milc import cli
|
||||
|
||||
from qmk.keyboard import rules_mk
|
||||
import qmk.path
|
||||
|
||||
|
@ -103,11 +105,13 @@ def write(keyboard, keymap, layout, layers):
|
|||
An array of arrays describing the keymap. Each item in the inner array should be a string that is a valid QMK keycode.
|
||||
"""
|
||||
keymap_c = generate(keyboard, layout, layers)
|
||||
keymap_file = qmk.path.keymap(keyboard) / 'keymap.c'
|
||||
keymap_file = qmk.path.keymap(keyboard) / keymap / 'keymap.c'
|
||||
|
||||
keymap_file.parent.mkdir(parents=True, exist_ok=True)
|
||||
keymap_file.write_text(keymap_c)
|
||||
|
||||
cli.log.info('Wrote keymap to {fg_cyan}%s', keymap_file)
|
||||
|
||||
return keymap_file
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue