1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:40: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() { func init() {
os.Chdir(path.Dir(os.Args[0]))
BeeApp = NewApp() BeeApp = NewApp()
AppPath, _ = os.Getwd() AppPath, _ = os.Getwd()
StaticDir = make(map[string]string) StaticDir = make(map[string]string)