Use current working dir as WorkingDir instead of hugo executable's dir

This commit is contained in:
Tatsushi Demachi 2014-11-21 09:40:45 +09:00 committed by spf13
parent ec4b6c03a8
commit 7436829b82

View file

@ -190,7 +190,7 @@ func InitializeConfig() {
if Source != "" {
viper.Set("WorkingDir", Source)
} else {
dir, _ := helpers.FindCWD()
dir, _ := os.Getwd()
viper.Set("WorkingDir", dir)
}