From 8c0a94c31cd64991ac4e0a761983eba4a2cfeaee Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 25 Oct 2021 17:00:31 +0800 Subject: [PATCH] ws modify --- src/common/config/config.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/config/config.go b/src/common/config/config.go index b873ef287..8c867ee6e 100644 --- a/src/common/config/config.go +++ b/src/common/config/config.go @@ -3,7 +3,6 @@ package config import ( "gopkg.in/yaml.v3" "io/ioutil" - "os" ) var Config config @@ -148,8 +147,8 @@ type config struct { } func init() { - path, _ := os.Getwd() - bytes, err := ioutil.ReadFile(path + "/config/config.yaml") + //path, _ := os.Getwd() + bytes, err := ioutil.ReadFile("../config/config.yaml") if err != nil { panic(err) }