def __virtual__():
    if salt.utils.is_windows() and HAS_WIN32:
        return 'win_path'
    return (False, "Module win_path: module only works on Windows systems")
Load only on Windows
dataset/ETHPy150Open saltstack/salt/salt/modules/win_path.py/__virtual__