~ruther/qmk_firmware

ref: 6e7c1c90fd51e540b3cad03ba3325bcb925d0e2f qmk_firmware/lib/python/qmk/cli/doctor/windows.py -rw-r--r-- 605 bytes
6e7c1c90 — Rutherther fix: remap ROW3 in kyria because of broken pin by static electricity discharge 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import platform

from milc import cli

from .check import CheckStatus, release_info


def os_test_windows():
    """Run the Windows specific tests.
    """
    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
Do not follow this link