From 1a5bf4a95ea73168cfd3526f326e6a62a66fdcbf Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 21 Jun 2023 12:08:04 +0800 Subject: [PATCH] improve InstallPyDep for non-english path --- backend-golang/rwkv.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend-golang/rwkv.go b/backend-golang/rwkv.go index 2f42527..fcccffa 100644 --- a/backend-golang/rwkv.go +++ b/backend-golang/rwkv.go @@ -4,7 +4,6 @@ import ( "errors" "os" "os/exec" - "path/filepath" "runtime" "strconv" "strings" @@ -52,11 +51,7 @@ func (a *App) InstallPyDep(python string, cnMirror bool) (string, error) { if python == "" { python, err = GetPython() if runtime.GOOS == "windows" { - python, err = filepath.Abs(python) - if err != nil { - return "", err - } - python = `"` + python + `"` + python = `"%CD%/` + python + `"` } } if err != nil {