How to use the pythonfinder._vendor.pep514tools._registry.open_source function in pythonfinder

To help you get started, we’ve selected a few pythonfinder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sarugaku / pythonfinder / src / pythonfinder / _vendor / pep514tools / environment.py View on Github external
def _get_sources(include_per_machine=True, include_per_user=True):
    if _is_64bit_os():
        if include_per_user:
            yield open_source(REGISTRY_SOURCE_CU), None
        if include_per_machine:
            yield open_source(REGISTRY_SOURCE_LM), '64bit'
            yield open_source(REGISTRY_SOURCE_LM_WOW6432), '32bit'
    else:
        if include_per_user:
            yield open_source(REGISTRY_SOURCE_CU), '32bit'
        if include_per_machine:
            yield open_source(REGISTRY_SOURCE_LM), '32bit'