def METHOD_NAME(self, paths_file: Path) -> int:
    """Add a paths to the lookup table"""
    opener = open
    if paths_file.suffix.lower() == ".gz":
        import gzip
        opener = gzip.open
    return self.add_from_paths(Path(p.strip()) for p in opener(paths_file, "rt"))