mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
🐛 加入诊断日志 macOS 端 Tesseract OCR 安装后不识别 https://github.com/siyuan-note/siyuan/issues/7107
This commit is contained in:
parent
1db58b5bd2
commit
599afa2ac9
@ -137,14 +137,15 @@ func initTesseract() {
|
||||
}
|
||||
|
||||
func getTesseractVer() (ret string) {
|
||||
logging.LogInfof("checking tesseract-ocr [Container=%s]", Container)
|
||||
if ContainerStd != Container {
|
||||
return
|
||||
}
|
||||
|
||||
logging.LogInfof("exec [tesseract --version]")
|
||||
cmd := exec.Command("tesseract", "--version")
|
||||
gulu.CmdAttr(cmd)
|
||||
logging.LogInfof("os env [%s]", os.Environ())
|
||||
logging.LogInfof("cmd env [%s]", cmd.Environ())
|
||||
cmd.Env = os.Environ()
|
||||
data, err := cmd.CombinedOutput()
|
||||
if nil != err {
|
||||
logging.LogErrorf("get tesseract version failed: %s", err)
|
||||
|
Loading…
Reference in New Issue
Block a user