Commit adfff7bc authored by David Martin's avatar David Martin

Use absolute import in tesseract.py to avoid circular import issue.

In ddfe4ddb we used absolute imports to
avoid the cicular dependencies between tesseract.py and builders.py to
be an issue. For it to work both modules have to use explicit imports.
parent ddfe4ddb
......@@ -27,7 +27,7 @@ import shutil
from . import builders
from . import util
from .builders import DigitBuilder # backward compatibility
import pyocr.builders # backward compatibility
from .error import TesseractError # backward compatibility
from .util import digits_only
......@@ -240,7 +240,7 @@ def get_available_builders():
builders.TextBuilder,
builders.WordBoxBuilder,
CharBoxBuilder,
builders.DigitBuilder,
pyocr.builders.DigitBuilder,
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment