fix for _DEFAULT_LANG not being set If tesseract doesn't find a valid tessdata path during _api.Init(NULL, NULL), TessBaseAPI::GetInitLanguagesAsString() will return the empty string. This breaks PyTessBaseAPI(path=path/to/valid/tessdata/location) initialization since the default argument lang=_DEFAULT_LANG (which was set to '') is not a valid language.
fix for _DEFAULT_LANG not being set
If tesseract doesn't find a valid tessdata path during _api.Init(NULL, NULL), TessBaseAPI::GetInitLanguagesAsString() will return the empty string. This breaks PyTessBaseAPI(path=path/to/valid/tessdata/location) initialization since the default argument lang=_DEFAULT_LANG (which was set to '') is not a valid language.

sirfz/tesserocr