From 7b66d847b727d3fd0c92abffdb3f1859d59fba32 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Thu, 1 Feb 2024 13:02:24 -0500 Subject: [PATCH] Ensure we are using absolute paths in PATH env var (#411) --- util/cli/cli.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/util/cli/cli.go b/util/cli/cli.go index 0d42bd9..eba8bb9 100644 --- a/util/cli/cli.go +++ b/util/cli/cli.go @@ -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