From 7140e9be383293884c54e44006cb25ba0431d437 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 5 Jun 2014 15:21:00 +0800 Subject: [PATCH] bee:change the Separator --- apiapp.go | 2 +- new.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apiapp.go b/apiapp.go index b787330..7508547 100644 --- a/apiapp.go +++ b/apiapp.go @@ -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) } diff --git a/new.go b/new.go index dd616c2..6635a5f 100644 --- a/new.go +++ b/new.go @@ -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) }