Skip to content

Commit

Permalink
use qmk.path.normpath to locate the output file.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullydazed committed Mar 12, 2020
1 parent 18bc525 commit 799acb2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/python/qmk/cli/json2c.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
"""Generate a keymap.c from a configurator export.
"""
import json
from pathlib import Path

from milc import cli

import qmk.keymap
import qmk.path


@cli.argument('-o', '--output', arg_only=True, type=Path, help='File to write to')
@cli.argument('-o', '--output', arg_only=True, type=qmk.path.normpath, help='File to write to')
@cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages")
@cli.argument('filename', arg_only=True, help='Configurator JSON file')
@cli.subcommand('Creates a keymap.c from a QMK Configurator export.')
Expand Down

0 comments on commit 799acb2

Please sign in to comment.