We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2949925 commit ccb369aCopy full SHA for ccb369a
ocrd/ocrd/processor/base.py
@@ -97,6 +97,7 @@ def __init__(
97
# FIXME HACK would be better to use pushd_popd(self.workspace.directory)
98
# but there is no way to do that in process here since it's an
99
# overridden method. chdir is almost always an anti-pattern.
100
+ self.old_pwd = getcwd()
101
if self.workspace:
102
self.old_pwd = getcwd()
103
os.chdir(self.workspace.directory)
0 commit comments