Add a warning when run on old python versions

This commit is contained in:
skullY
2020-02-21 12:03:46 -08:00
parent 742e1ce0e1
commit a4e9c34387
+5
View File
@@ -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__