Skip to content

Commit

Permalink
add tesseract path logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Santi871 committed Jun 3, 2019
1 parent 6d733d7 commit 3962ca6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def __init__(self, editor, software_version):
self.capture_key = self.editor.settings.get("PREFERENCES", "capture_key")
self.software_version = software_version

pytesseract.pytesseract.tesseract_cmd = self.editor.settings['PREFERENCES'].get('tesseract_path', str())
tesseract_path = self.editor.settings['PREFERENCES'].get('tesseract_path', "tesseract")
self.logger.info(f"Tesseract path is: {tesseract_path}")
pytesseract.pytesseract.tesseract_cmd = tesseract_path
try:
self.tesseract_version = pytesseract.get_tesseract_version()
self.capture_status = "Status: Not capturing"
Expand Down

0 comments on commit 3962ca6

Please sign in to comment.