def mock_exists(path): if path.endswith("pip") or path.endswith("pip.exe"): return False else: return real_exists(path)
def proxied_exists(path): if path in paths: return True return real_exists(path)