config 파일 경로를 절대 경로로 만드는 로직 다시 제거
This commit is contained in:
@ -3,8 +3,6 @@ package gocommon
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
|
||||||
"strings"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"repositories.action2quare.com/ayo/gocommon/flagx"
|
"repositories.action2quare.com/ayo/gocommon/flagx"
|
||||||
@ -18,10 +16,10 @@ func configFilePath() string {
|
|||||||
configfilepath = *configfileflag
|
configfilepath = *configfileflag
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasPrefix(configfilepath, "/") {
|
// if !strings.HasPrefix(configfilepath, "/") {
|
||||||
exe, _ := os.Executable()
|
// exe, _ := os.Executable()
|
||||||
configfilepath = path.Join(path.Dir(exe), configfilepath)
|
// configfilepath = path.Join(path.Dir(exe), configfilepath)
|
||||||
}
|
// }
|
||||||
|
|
||||||
return configfilepath
|
return configfilepath
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user