def get_env(name, current=True):
    root = winreg.HKEY_CURRENT_USER if current else winreg.HKEY_LOCAL_MACHINE
    key = winreg.OpenKey(root, "Environment")
    for index in range(0, winreg.QueryInfoKey(key)[1]):
        try:
            value = winreg.EnumValue(key, index)
            if value[0].lower() == name.lower():
                # Return both value[0] and value[1] because value[0] could be
                # different from name (lowercase/uppercase)
                return value[0], value[1]
        except:
            break
Return true if the object is a module.
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/get_env--crossover with--dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py/ismodule