From 79ee5adf46471544638c7a3e3bf41f85dd1d63bf Mon Sep 17 00:00:00 2001 From: Kiril Zvezdarov Date: Fri, 22 May 2015 17:19:48 -0400 Subject: [PATCH] Removed CWD from default search path --- viper.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/viper.go b/viper.go index 946f9c1..11f3a77 100644 --- a/viper.go +++ b/viper.go @@ -148,13 +148,6 @@ func New() *Viper { v.env = make(map[string]string) v.aliases = make(map[string]string) - wd, err := os.Getwd() - if err != nil { - jww.INFO.Println("Could not add cwd to search paths", err) - } else { - v.AddConfigPath(wd) - } - return v }