We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f664d57 commit fd995f8Copy full SHA for fd995f8
pkg/gptscript/gptscript.go
@@ -4,6 +4,7 @@ import (
4
"context"
5
"fmt"
6
"os"
7
+ "path/filepath"
8
9
"github.com/gptscript-ai/gptscript/pkg/builtin"
10
"github.com/gptscript-ai/gptscript/pkg/cache"
@@ -113,6 +114,12 @@ func (g *GPTScript) getEnv(env []string) ([]string, error) {
113
114
if err != nil {
115
return nil, err
116
}
117
+ } else if !filepath.IsAbs(g.WorkspacePath) {
118
+ var err error
119
+ g.WorkspacePath, err = filepath.Abs(g.WorkspacePath)
120
+ if err != nil {
121
+ return nil, err
122
+ }
123
124
if err := os.MkdirAll(g.WorkspacePath, 0700); err != nil {
125
0 commit comments