forked from mirror/viper
Removed CWD from default search path
This commit is contained in:
parent
0d75ecea1c
commit
79ee5adf46
7
viper.go
7
viper.go
|
@ -148,13 +148,6 @@ func New() *Viper {
|
||||||
v.env = make(map[string]string)
|
v.env = make(map[string]string)
|
||||||
v.aliases = 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
|
return v
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue