Commit ee9b8b6a authored by astaxie's avatar astaxie

fix when in linux system not in the app dir

parent 5cf52e2c
...@@ -42,6 +42,7 @@ var ( ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment