removed config file location

This commit is contained in:
Daniel Sommer 2023-02-02 10:03:49 +01:00
parent 0c99d186a4
commit 23f2351543

View file

@ -27,7 +27,6 @@ func Initialize() {
viper.SetConfigName("config")
viper.SetConfigType("yaml")
viper.AddConfigPath("$HOME/.config/worklog/")
viper.AddConfigPath("$HOME/.config/")
workingDirectory, error := os.Getwd()
for error == nil && path.Base(workingDirectory) != "worklog" {
workingDirectory = path.Dir(workingDirectory)