I thought that pushing new commits would update the pull request #10. Doesn't look like it. So
I could not get OCR working until i made this change.
I think the problem is that i have no config file. Then self.opts['ocr'] keep the bool type it got earlier, and as it was the bool True and not the string 'True', it got set to False with the old code.
The other way to deal with this would be to use a string in line 190, i guess.
(The two lines at the end got removed by emacs, which i have set to remove trailing whitespace automatically.)
This should sets it to False again when the setting is 'False'.
I thought that pushing new commits would update the pull request #10. Doesn't look like it. So I could not get OCR working until i made this change. I think the problem is that i have no config file. Then
self.opts['ocr']
keep the bool type it got earlier, and as it was the boolTrue
and not the string'True'
, it got set toFalse
with the old code. The other way to deal with this would be to use a string in line 190, i guess.(The two lines at the end got removed by emacs, which i have set to remove trailing whitespace automatically.)
This should sets it to
False
again when the setting is'False'
.