Skip to content

Commit ccb369a

Browse files
author
Robert Sachunsky
committed
ocrd.processor.base: also init old_pwd when no workspace yet
1 parent 2949925 commit ccb369a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocrd/ocrd/processor/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def __init__(
9797
# FIXME HACK would be better to use pushd_popd(self.workspace.directory)
9898
# but there is no way to do that in process here since it's an
9999
# overridden method. chdir is almost always an anti-pattern.
100+
self.old_pwd = getcwd()
100101
if self.workspace:
101102
self.old_pwd = getcwd()
102103
os.chdir(self.workspace.directory)

0 commit comments

Comments
 (0)