config 파일 경로를 절대 경로로 만드는 로직 다시 제거
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user