def __init__()

in library/scripts/pack_strings.py [0:0]


    def __init__(self, sp_config):
        with open(sp_config.pack_ids_class_file_path, "rt") as fd:
            self.id_data = fd.read()
        all_matches = re.findall(
            r"R\.(?:string|plurals)(?:.*?)\.(\w+),", self.id_data, flags=re.DOTALL
        )
        self.seen_ids = {}
        for i in range(0, len(all_matches)):
            self.seen_ids[all_matches[i]] = i