From 12c415f09ccb6e120427b7d092e6fe9406ac6ed1 Mon Sep 17 00:00:00 2001 From: skullY Date: Sat, 9 May 2020 19:44:54 -0700 Subject: [PATCH] Add a warning for when people have (probably) misconfigured QMK_HOME --- qmk_cli/script_qmk.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qmk_cli/script_qmk.py b/qmk_cli/script_qmk.py index 0ee6199..ec96c2f 100644 --- a/qmk_cli/script_qmk.py +++ b/qmk_cli/script_qmk.py @@ -96,6 +96,9 @@ def main(): try: import qmk.cli except ImportError: + if qmk_firmware.name != 'qmk_firmware': + print('Warning: %s does not end in "qmk_firmware". Do you need to set QMK_HOME to "%s/qmk_firmware"?' % (qmk_firmware,qmk_firmware)) + print('Error: %s is too old or not set up correctly!' % qmk_firmware) print('Please update it or remove it completely before continuing.') sys.exit(1)