Global Variables
Lua has no constant type, so some global variables are used to represent constants.
The path variables below are resolved at runtime according to the installation flavor. You normally do not need to care about the exact paths; on rootless or TrollStore editions the paths may live under a different mount point. If you need to construct a path under the system root manually, see jbroot.
Paths
XXT_HOME_PATH
XXT home directory
Rootful edition: /var/mobile/Media/1ferver/
XXT_RES_PATH
XXT resources directory
Rootful edition: /var/mobile/Media/1ferver/res/
XXT_SCRIPTS_PATH
XXT scripts directory
Rootful edition: /var/mobile/Media/1ferver/lua/scripts/
XXT_LUA_PATH
XXT Lua extension library directory
Rootful edition: /var/mobile/Media/1ferver/lua/
XXT_LIB_PATH
XXT C extension library directory
Rootful edition: /var/mobile/Media/1ferver/lib/
XXT_LOG_PATH
XXT logs directory
Rootful edition: /var/mobile/Media/1ferver/log/
XXT_MODELS_PATH
XXT inference models directory
Rootful edition: /var/mobile/Media/1ferver/models/
XXT_TESSDATA_PATH (Deprecated)
XXT legacy OCR language data directory
Rootful edition: /var/mobile/Media/1ferver/tessdata/
Status
IS_TROLLSTORE_EDITION
Whether the current build is the TrollStore edition