Browse Source

bee:change the Separator

pull/22/head
astaxie 8 years ago
parent
commit
7140e9be38
  1. 2
      apiapp.go
  2. 2
      new.go

2
apiapp.go

@ -218,7 +218,7 @@ import ( @@ -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

@ -186,7 +186,7 @@ import ( @@ -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)
}

Loading…
Cancel
Save