diff options
author | QMK Bot <hello@qmk.fm> | 2021-02-28 20:19:42 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-02-28 20:19:42 +0000 |
commit | 80e8e20a8965da5934f74141291c6c5d805774c6 (patch) | |
tree | 0633fc2addeaee7afd52e3401cd06efa92b4c65b /lib/python/qmk/cli/generate/rules_mk.py | |
parent | 0efafdd408f31c39dd1b9a5e0ef356bc84a50243 (diff) | |
parent | 59c7deab0931207016315636ae1ef74c2c54dd18 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/cli/generate/rules_mk.py')
-rwxr-xr-x | lib/python/qmk/cli/generate/rules_mk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/generate/rules_mk.py b/lib/python/qmk/cli/generate/rules_mk.py index af740f341d..c21ab50906 100755 --- a/lib/python/qmk/cli/generate/rules_mk.py +++ b/lib/python/qmk/cli/generate/rules_mk.py @@ -44,7 +44,7 @@ def generate_rules_mk(cli): """Generates a rules.mk file from info.json. """ if not cli.config.generate_rules_mk.keyboard: - cli.log.error('Missing paramater: --keyboard') + cli.log.error('Missing parameter: --keyboard') cli.subcommands['info'].print_help() return False @@ -79,7 +79,7 @@ def generate_rules_mk(cli): if cli.args.output: cli.args.output.parent.mkdir(parents=True, exist_ok=True) if cli.args.output.exists(): - cli.args.output.replace(cli.args.output.name + '.bak') + cli.args.output.replace(cli.args.output.parent / (cli.args.output.name + '.bak')) cli.args.output.write_text(rules_mk) if cli.args.quiet: |