From 200b76da8a0dd95b524d44e90a92106a9699d9fd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 28 Oct 2025 21:59:48 -0500 Subject: allow libraries to load a specific app env config file --- path.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'path.go') diff --git a/path.go b/path.go index 66a27fe..b9fffdb 100644 --- a/path.go +++ b/path.go @@ -1,25 +1,24 @@ package env import ( + "fmt" "os" "path/filepath" "strings" - - "go.wit.com/log" ) // adds a path to the ENV func AddPath(newpath string) bool { path := os.Getenv("PATH") for _, p := range strings.Split(path, ":") { - log.Info("Looking at path:", p) + fmt.Println("Looking at path:", p) if p == newpath { - log.Info("FOUND path:", p) + fmt.Println("FOUND path:", p) return false } } path = path + ":" + newpath - log.Info("ADDING PATH:", path) + fmt.Println("ADDING PATH:", path) os.Setenv("PATH", path) return true } -- cgit v1.2.3