修正配置提示中的 exe 表述
This commit is contained in:
1 parent
dc40bf8b9b
commit
bec4e23ede
1 file changed
+1
-1
@@ -94,7 +94,7 @@ func getConfigBesidesExecutable() (*configs.Config, error) {
|
||||
|
||||
// 回退:在当前 exe 旁边查找(用户直接双击运行的场景)
|
||||
configPath := filepath.Join(filepath.Dir(exePath), "config.yml")
|
||||
fmt.Fprintf(os.Stderr, "[Config] 使用当前 exe 目录的配置文件: %s\n", configPath)
|
||||
fmt.Fprintf(os.Stderr, "[Config] 使用当前程序目录的配置文件: %s\n", configPath)
|
||||
config, err := configs.NewConfigWithFile(configPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user