config 파일 경로를 절대 경로로 만드는 로직 다시 제거

This commit is contained in:
2024-02-13 15:06:40 +09:00
parent e0ab399a9c
commit d8156a96ee

View File

@ -3,8 +3,6 @@ package gocommon
import (
"encoding/json"
"os"
"path"
"strings"
"time"
"repositories.action2quare.com/ayo/gocommon/flagx"
@ -18,10 +16,10 @@ func configFilePath() string {
configfilepath = *configfileflag
}
if !strings.HasPrefix(configfilepath, "/") {
exe, _ := os.Executable()
configfilepath = path.Join(path.Dir(exe), configfilepath)
}
// if !strings.HasPrefix(configfilepath, "/") {
// exe, _ := os.Executable()
// configfilepath = path.Join(path.Dir(exe), configfilepath)
// }
return configfilepath
}