Commit 973dcf00 authored by Jerome Flesch's avatar Jerome Flesch

Tesseract + frozen: When frozen with cx_freeze, do not rely on the content of...

Tesseract + frozen: When frozen with cx_freeze, do not rely on the content of the PATH variable to figure out if the environment variables have been set: PATH is modified by cx_freeze and include the current work directory
parent 7a85c0c3
Pipeline #99343 failed with stage
in 10 minutes and 5 seconds
......@@ -120,7 +120,7 @@ def _set_environment():
if getattr(sys, 'frozen', False): # pragma: no cover
# Pyinstaller support
path = os.environ["PATH"]
if sys._MEIPASS in path or g_version is not None:
if 'TESSDATA_PREFIX' in os.environ:
# already changed
return
......
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