30 #define VARDIR "configs/" 34 "Warning:explicit path for executable will not be used for configs";
35 static const ERRCODE USAGE =
"Usage";
56 char *tessdata_prefix = getenv(
"TESSDATA_PREFIX");
58 if (argv0 != NULL && *argv0 !=
'\0') {
61 }
else if (tessdata_prefix) {
69 DWORD length = GetModuleFileName(NULL, exe,
sizeof(exe));
70 if (length > 0 && length <
sizeof(exe)) {
71 _splitpath(exe, NULL, dir, NULL, NULL);
75 #if defined(TESSDATA_PREFIX) 79 #define _XSTR(a) _STR(a) 94 if ((strcmp(lastchar,
"/") != 0) && (strcmp(lastchar,
"\\") != 0))
void main_setup(const char *argv0, const char *basename)
CCUtil::main_setup - set location of tessdata and name of image.
const char * string() const