def is_local(self, path: PathLike) -> bool: return misc.normalize_path(path).startswith( misc.normalize_path(self.get_paths()["prefix"]))
def is_local(self, path: PathLike) -> bool: """PEP 582 version of ``is_local()`` function.""" return misc.normalize_path(path).startswith( misc.normalize_path(self.packages_path.as_posix()))