Add directory parsing option to make-page2tsv-commands

pull/2/head
Kai 3 years ago
parent aa79678403
commit c554644838

@ -268,7 +268,7 @@ def make_page2tsv_commands(xls_file, directory, purpose):
elif directory is not None:
for file in glob.glob('{}/**/*.xml'.format(directory), recursive=True):
ma = re.match('(.*/(PPN[0-9]+)/([0-9]+)).xml', file)
ma = re.match('(.*/(PPN[0-9]+)/.*?([0-9]+).*?).xml', file)
if ma:
print('page2tsv {} {}.tsv '

Loading…
Cancel
Save