diff --git a/viper.go b/viper.go index 7099b9c..6c249fe 100644 --- a/viper.go +++ b/viper.go @@ -143,6 +143,13 @@ 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 }