Merge pull request #72 from kzvezdarov/cwd-fix

Removed CWD from default search path
This commit is contained in:
Bjørn Erik Pedersen 2015-05-22 23:30:46 +02:00
commit d62d4bb4c6
1 changed files with 0 additions and 7 deletions

View File

@ -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
}