Commit e90f4bee authored by mlgd's avatar mlgd Committed by GitHub

Remove a regression on AppPath

The application path is incorrect on Windows with the command line "go run". AppPath is assigned to the temp directory instead the folder project
parent eba6afd6
...@@ -144,9 +144,6 @@ func init() { ...@@ -144,9 +144,6 @@ func init() {
if err = parseConfig(appConfigPath); err != nil { if err = parseConfig(appConfigPath); err != nil {
panic(err) panic(err)
} }
if err = os.Chdir(AppPath); err != nil {
panic(err)
}
} }
func recoverPanic(ctx *context.Context) { func recoverPanic(ctx *context.Context) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment