Skip to content

Commit

Permalink
Ensure we are using absolute paths in PATH env var (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaloney authored Feb 1, 2024
1 parent 55ad03a commit 7b66d84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions util/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ func FromContext(ctx context.Context) (*Settings, error) {

// SetupPaths will set PATH and VIRTUAL_ENV environment variables to our environment path.
func SetupPaths(envPath string) (err error) {
envPath, err = filepath.Abs(envPath)
if err != nil {
return
}

pythonVENVPath := "bin"

// Python on Windows puts itself in a different place, so adjust our path accordingly
Expand Down

0 comments on commit 7b66d84

Please sign in to comment.