ee9b8b6a by astaxie

fix when in linux system not in the app dir

1 parent 5cf52e2c
Showing 1 changed file with 1 additions and 0 deletions
...@@ -42,6 +42,7 @@ var ( ...@@ -42,6 +42,7 @@ var (
42 ) 42 )
43 43
44 func init() { 44 func init() {
45 os.Chdir(path.Dir(os.Args[0]))
45 BeeApp = NewApp() 46 BeeApp = NewApp()
46 AppPath, _ = os.Getwd() 47 AppPath, _ = os.Getwd()
47 StaticDir = make(map[string]string) 48 StaticDir = make(map[string]string)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!