From 191980052ebe8bd022013fcebd861ad2e0f80dcf Mon Sep 17 00:00:00 2001 From: Erovia Date: Thu, 9 Apr 2020 14:17:03 +0200 Subject: [PATCH] Add warning message for MSYS users --- qmk_cli/script_qmk.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qmk_cli/script_qmk.py b/qmk_cli/script_qmk.py index cb91559..ddf7a4b 100644 --- a/qmk_cli/script_qmk.py +++ b/qmk_cli/script_qmk.py @@ -9,6 +9,7 @@ import subprocess import sys from functools import lru_cache from pathlib import Path +import platform import milc @@ -69,6 +70,11 @@ def main(): print('Warning: Your Python version is out of date! Some subcommands may not work!') print('Please upgrade to Python 3.6 or later.') + if 'windows' in platform.platform().lower(): + if 'mingw64' not in sys.executable or 'mingw64' not in os.environ.get('MSYSTEM_PREFIX', ''): + print('Warning: It seems you are not using the MINGW64 terminal.') + print('While the MSYS one can work, too, we recommend/support you start "MSYS2 MinGW 64-bit".\n') + # Environment setup import qmk_cli milc.cli.version = qmk_cli.__version__