Skip to content

Commit 4caea56

Browse files
committed
Fix dir2msgstr not honoring skip_files setting
1 parent d57845c commit 4caea56

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

msg2po/dir2msgstr.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def dir2msgstr(src_dir: str, po: POFile, po_path: str = "", overwrite: bool = Tr
5656
"""
5757
print("overwrite is " + str(overwrite))
5858

59+
skip_files = CONFIG.skip_files
60+
5961
with cd(src_dir):
6062
female_map = female_entries(po)
6163

@@ -70,6 +72,11 @@ def dir2msgstr(src_dir: str, po: POFile, po_path: str = "", overwrite: bool = Tr
7072
print("{} is a file with female strings, skipping".format(full_name))
7173
continue
7274

75+
# Skip files as configured
76+
if full_name in skip_files:
77+
print("{} is in skip_files. Skipping!".format(full_name))
78+
continue
79+
7380
enc = get_enc(po_path, file_name)
7481
print("processing {} with encoding {}".format(full_name, enc))
7582
po = file2msgstr(

0 commit comments

Comments
 (0)