mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
snap: Avoid hardcoding the TESSDATA_PREFIX environment variable
This patch allows the user to store Tesseract data in custom paths using the TESSDATA_PREFIX environment variable. Previously it is hardcoded to $SNAP_USER_COMMON. Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
This commit is contained in:
parent
88c3e3360f
commit
ca47315676
@ -20,7 +20,6 @@ apps:
|
||||
command: usr/local/bin/tesseract
|
||||
environment:
|
||||
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/local/lib
|
||||
TESSDATA_PREFIX: $SNAP_USER_COMMON
|
||||
plugs:
|
||||
- home
|
||||
- removable-media
|
||||
|
Loading…
Reference in New Issue
Block a user