From a4e9c34387e17eedce37c689e96738b91f51fd04 Mon Sep 17 00:00:00 2001 From: skullY Date: Fri, 21 Feb 2020 12:03:46 -0800 Subject: [PATCH] Add a warning when run on old python versions --- qmk_cli/script_qmk.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qmk_cli/script_qmk.py b/qmk_cli/script_qmk.py index d281763..1af27d9 100644 --- a/qmk_cli/script_qmk.py +++ b/qmk_cli/script_qmk.py @@ -64,6 +64,11 @@ def find_qmk_firmware(): def main(): """Setup the environment before dispatching to the entrypoint. """ + # Warn if they use an outdated python version + if sys.version_info < (3, 6): + print('Warning: Your Python version is out of date! Some subcommands may not work!') + print('Please upgrade to Python 3.6 or later.') + # Environment setup import qmk_cli milc.cli.version = qmk_cli.__version__