diff options
author | skullydazed <skullydazed@users.noreply.github.com> | 2020-04-18 13:00:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-18 22:00:56 +0200 |
commit | 66d94dc22af4fccae2af073c512662ce7eba7d98 (patch) | |
tree | a720968b0f1951cc2ec920da373701d308f04d88 /lib/python/qmk/cli/__init__.py | |
parent | 5a8f59503e41923030249561e9ef56be62de3efa (diff) | |
download | qmk_firmware-66d94dc22af4fccae2af073c512662ce7eba7d98.tar.gz qmk_firmware-66d94dc22af4fccae2af073c512662ce7eba7d98.zip |
Move everything to Python 3.6 (#8835)
Diffstat (limited to 'lib/python/qmk/cli/__init__.py')
-rw-r--r-- | lib/python/qmk/cli/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/__init__.py b/lib/python/qmk/cli/__init__.py index eb524217c..394a1353b 100644 --- a/lib/python/qmk/cli/__init__.py +++ b/lib/python/qmk/cli/__init__.py | |||
@@ -2,6 +2,8 @@ | |||
2 | 2 | ||
3 | We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup. | 3 | We list each subcommand here explicitly because all the reliable ways of searching for modules are slow and delay startup. |
4 | """ | 4 | """ |
5 | import sys | ||
6 | |||
5 | from milc import cli | 7 | from milc import cli |
6 | 8 | ||
7 | from . import cformat | 9 | from . import cformat |
@@ -19,5 +21,6 @@ from . import new | |||
19 | from . import pyformat | 21 | from . import pyformat |
20 | from . import pytest | 22 | from . import pytest |
21 | 23 | ||
22 | if not hasattr(cli, 'config_source'): | 24 | if sys.version_info[0] != 3 or sys.version_info[1] < 6: |
23 | cli.log.warning("Your QMK CLI is out of date. Please upgrade with `pip3 install --upgrade qmk` or by using your package manager.") | 25 | cli.log.error('Your Python is too old! Please upgrade to Python 3.6 or later.') |
26 | exit(127) | ||