From c554644838382de693eda1daffff8197c2d887e9 Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 10 Mar 2021 12:03:45 +0100 Subject: [PATCH] Add directory parsing option to make-page2tsv-commands --- tsvtools/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsvtools/cli.py b/tsvtools/cli.py index f1e5b68..d554f25 100644 --- a/tsvtools/cli.py +++ b/tsvtools/cli.py @@ -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 '