def is_local(path):
    if not running_under_virtualenv():
        return True
    return normalize_path(path).startswith(normalize_path(sys.prefix))
Return True if path is within sys.prefix, if we're running in a virtualenv.
dataset/ETHPy150Open anzev/hedwig/build/pip/pip/utils/__init__.py/is_local