summaryrefslogtreecommitdiff
path: root/lib/python/qmk/cli/doctor.py
diff options
context:
space:
mode:
authorMikkel Jeppesen <2756925+Duckle29@users.noreply.github.com>2020-01-28 22:21:00 +0100
committerFlorian Didron <fdidron@users.noreply.github.com>2020-02-26 10:15:12 +0900
commitb1f101030b295fbf3f49977b5625a7e29a5946aa (patch)
treee44b83ebc6d000c2859a131cb00f792211eb1851 /lib/python/qmk/cli/doctor.py
parent41b518c55fa1138e01fca28349cb131355ffd35f (diff)
Qmk doctor os check to support newer msys2/w10 installations (#8031)
* Fixed OS detection on newer MSYS installations * made OS sting lower case
Diffstat (limited to 'lib/python/qmk/cli/doctor.py')
-rwxr-xr-xlib/python/qmk/cli/doctor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/qmk/cli/doctor.py b/lib/python/qmk/cli/doctor.py
index 013bf7943c..0d6c1c5b06 100755
--- a/lib/python/qmk/cli/doctor.py
+++ b/lib/python/qmk/cli/doctor.py
@@ -168,15 +168,15 @@ def doctor(cli):
ok = True
# Determine our OS and run platform specific tests
- OS = platform.system() # noqa (N806), uppercase name is ok in this instance
+ OS = platform.platform().lower() # noqa (N806), uppercase name is ok in this instance
- if OS == 'Darwin':
+ if 'darwin' in OS:
if not os_test_macos():
ok = False
- elif OS == 'Linux':
+ elif 'linux' in OS:
if not os_test_linux():
ok = False
- elif OS == 'Windows':
+ elif 'windows' in OS:
if not os_test_windows():
ok = False
else: