Skip to content

Commit f09ae58

Browse files
kbafinkf
authored andcommitted
replace deprecated ocrd workspace CLI constructs
1 parent 5bb73c3 commit f09ae58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ installed in order to run any tests).
480480
# Miscellaneous
481481
## OCR-D workspace
482482
483-
* Create a new (empty) workspace: `ocrd workspace init workspace-dir`
483+
* Create a new (empty) workspace: `ocrd workspace -d workspace-dir init`
484484
* cd into `workspace-dir`
485485
* Add new file to workspace: `ocrd workspace add file -G group -i id
486486
-m mimetype -g pageId`

ocrd_cis/aio/aio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def addtoworkspace(wsdir, gtdir):
161161

162162
_, _, files = os.walk(wsdir).__next__()
163163
if 'mets.xml' not in files:
164-
initcmd = 'ocrd workspace init {}'.format(wsdir)
164+
initcmd = 'ocrd workspace -d {} init'.format(wsdir)
165165
subprocess_cmd(initcmd)
166166

167167

0 commit comments

Comments
 (0)