Expand locations during initialisation (fixes #1575).

This commit is contained in:
Lode Hoste 2015-04-03 20:22:39 +02:00
parent 65923b5c20
commit 19dfa88258

View File

@ -235,6 +235,10 @@ func main() {
baseDirs["config"] = confDir
}
if err := expandLocations(); err != nil {
l.Fatalln(err)
}
if runtime.GOOS == "windows" {
if logFile == "" {
// Use the default log file location
@ -245,10 +249,6 @@ func main() {
}
}
if err := expandLocations(); err != nil {
l.Fatalln(err)
}
if showVersion {
fmt.Println(LongVersion)
return