Fix: get execute file path dynamically

This commit is contained in:
HFO4
2020-03-11 10:32:35 +08:00
parent b6e1e04ce0
commit 4d70f9fa3e
12 changed files with 27 additions and 16 deletions

View File

@ -11,7 +11,7 @@ import (
var confPath string
func init() {
flag.StringVar(&confPath, "c", "conf.ini", "配置文件路径")
flag.StringVar(&confPath, "c", util.RelativePath("conf.ini"), "配置文件路径")
flag.Parse()
bootstrap.Init(confPath)
}