MCPcopy Create free account
hub / github.com/comaps/comaps / __init__

Method __init__

tools/python/po_parser.py:24–34  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22#msgstr
23class PoParser:
24 def __init__(self):
25 args = self.parse_args()
26 self.folder_path = args.folder
27 self.all_po_files = self.find_all_po_files()
28
29 if (args.strings_txt):
30 self.dest_file = StringsTxt(args.strings_txt)
31 elif (args.categories_txt):
32 self.dest_file = CategoriesTxt(args.categories_txt)
33 else:
34 raise RuntimeError("You must specify either -s or -c")
35
36
37 def find_all_po_files(self):

Callers

nothing calls this directly

Calls 3

parse_argsMethod · 0.95
find_all_po_filesMethod · 0.95
CategoriesTxtClass · 0.90

Tested by

no test coverage detected