1
0
mirror of https://github.com/beego/bee.git synced 2024-11-28 04:51:29 +00:00

bee:change the Separator

This commit is contained in:
astaxie 2014-06-05 15:21:00 +08:00
parent 5e8ddf066f
commit 7140e9be38
2 changed files with 2 additions and 2 deletions

View File

@ -218,7 +218,7 @@ import (
func init() {
_, file, _, _ := runtime.Caller(1)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, "../")))
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + filepath.Separator)))
beego.TestBeegoInit(apppath)
}

2
new.go
View File

@ -186,7 +186,7 @@ import (
func init() {
_, file, _, _ := runtime.Caller(1)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, "../")))
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".." + filepath.Separator)))
beego.TestBeegoInit(apppath)
}