diff options
author | Joel Challis <git@zvecr.com> | 2023-01-19 10:25:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-19 10:25:47 +0000 |
commit | 4973950ddcef28d94a1fc589951e024a91a240d7 (patch) | |
tree | a52fba64d5198fc219fc201ac286dd97aa7458b9 /lib/python/qmk/cli/doctor/windows.py | |
parent | 3723c0e3d57f0afdff0e1b7421d26d6c7f6c980d (diff) |
Print distro in doctor output (#19633)
Diffstat (limited to 'lib/python/qmk/cli/doctor/windows.py')
-rw-r--r-- | lib/python/qmk/cli/doctor/windows.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/doctor/windows.py b/lib/python/qmk/cli/doctor/windows.py index 381ab36fde..26bb65374b 100644 --- a/lib/python/qmk/cli/doctor/windows.py +++ b/lib/python/qmk/cli/doctor/windows.py @@ -2,7 +2,7 @@ import platform from milc import cli -from .check import CheckStatus +from .check import CheckStatus, release_info def os_test_windows(): @@ -11,4 +11,10 @@ def os_test_windows(): win32_ver = platform.win32_ver() cli.log.info("Detected {fg_cyan}Windows %s (%s){fg_reset}.", win32_ver[0], win32_ver[1]) + # MSYS really does not like "/" files - resolve manually + file = cli.run(['cygpath', '-m', '/etc/qmk-release']).stdout.strip() + qmk_distro_version = release_info(file).get('VERSION', None) + if qmk_distro_version: + cli.log.info('QMK MSYS version: %s', qmk_distro_version) + return CheckStatus.OK |