mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-07-11 05:59:52 +02:00
🚧 ppn2ocr: Actually run the workflow
This commit is contained in:
parent
74cb361723
commit
014e70fe35
1 changed files with 7 additions and 4 deletions
11
ppn2ocr
11
ppn2ocr
|
@ -5,6 +5,7 @@ import requests
|
||||||
import sys
|
import sys
|
||||||
import lxml.etree as ET
|
import lxml.etree as ET
|
||||||
import re
|
import re
|
||||||
|
import subprocess
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
|
|
||||||
|
|
||||||
|
@ -139,11 +140,13 @@ ppn = sys.argv[1]
|
||||||
|
|
||||||
|
|
||||||
# From here, the magic happens
|
# From here, the magic happens
|
||||||
# self_dir=`dirname $0`
|
self_dir = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||||
# self_dir=`realpath $self_dir`
|
|
||||||
|
|
||||||
make_workspace(ppn, ppn)
|
make_workspace(ppn, ppn)
|
||||||
# XXX $self_dir/run-docker-hub -I PRESENTATION --skip-validation
|
subprocess.run([
|
||||||
|
os.path.join(self_dir, 'run-docker-hub'),
|
||||||
|
'-I', 'BEST',
|
||||||
|
'--skip-validation'
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue