diff options
author | Nick White <git@njw.name> | 2022-02-21 12:33:48 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2022-02-21 12:33:48 +0000 |
commit | 69ac99da02988ad2ed675570ccaa5ff7777f0279 (patch) | |
tree | aac4a7b560d0f0e3ee79f8061c0ec74b6d00fb5b /cmd | |
parent | 066884ddf4a160baec7c8f3d0974d7aeca1eec6b (diff) |
Ensure that no new console windows are opened on Windows when executing Tesseract
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/rescribe/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 41dc83c..7db5e3e 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -428,7 +428,9 @@ func rmIfNotImage(f string) error { } func startProcess(ctx context.Context, logger log.Logger, tessCommand string, bookdir string, bookname string, trainingName string, savedir string, tessdir string) error { - _, err := exec.Command(tessCommand, "--help").Output() + cmd := exec.Command(tessCommand, "--help") + pipeline.HideCmd(cmd) + _, err := cmd.Output() if err != nil { errmsg := "Error, Can't run Tesseract\n" errmsg += "Ensure that Tesseract is installed and available, or don't use the -systess flag.\n" |