Beispiel #1
0
 def is_local(self, path: PathLike) -> bool:
     return misc.normalize_path(path).startswith(
         misc.normalize_path(self.get_paths()["prefix"]))
Beispiel #2
0
 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()))