1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-25 19:50:55 +00:00

fix when in linux system not in the app dir

This commit is contained in:
astaxie 2013-04-12 13:58:08 +08:00
parent 5cf52e2cb8
commit ee9b8b6aa9

View File

@ -42,6 +42,7 @@ var (
)
func init() {
os.Chdir(path.Dir(os.Args[0]))
BeeApp = NewApp()
AppPath, _ = os.Getwd()
StaticDir = make(map[string]string)