mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix: workdir path error
This commit is contained in:
@@ -135,10 +135,7 @@ type Config struct {
|
||||
func init() {
|
||||
// compatibility linux and windows
|
||||
var err error
|
||||
if gopath := os.Getenv("GOPATH"); gopath != "" {
|
||||
WorkDir = filepath.Join(gopath, "src", "github.com",
|
||||
"eiblog", "eiblog")
|
||||
}
|
||||
WorkDir = workDir()
|
||||
path := filepath.Join(WorkDir, "conf", "app.yml")
|
||||
|
||||
data, err := ioutil.ReadFile(path)
|
||||
|
||||
Reference in New Issue
Block a user