mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-06 03:51:25 +08:00
【更新】更新
This commit is contained in:
@@ -8,6 +8,8 @@ import (
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var GConfig *Config
|
||||
|
||||
func InitConfig(configFilePath string) *Config {
|
||||
// 获取启动参数中,配置文件的绝对路径
|
||||
path, _ := filepath.Abs(configFilePath)
|
||||
@@ -19,6 +21,7 @@ func InitConfig(configFilePath string) *Config {
|
||||
}
|
||||
// 校验配置文件内容信息
|
||||
yc.Valid()
|
||||
GConfig = yc
|
||||
return yc
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user