From d8156a96ee753c734042551b207f79ec2339085b Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 13 Feb 2024 15:06:40 +0900 Subject: [PATCH] =?UTF-8?q?config=20=ED=8C=8C=EC=9D=BC=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=EB=A5=BC=20=EC=A0=88=EB=8C=80=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=EB=A1=9C=20=EB=A7=8C=EB=93=9C=EB=8A=94=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reflect_config.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/reflect_config.go b/reflect_config.go index 38aa5a5..bf17f7a 100644 --- a/reflect_config.go +++ b/reflect_config.go @@ -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 }