fix when in linux system not in the app dir
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) | ... | ... |
-
Please register or sign in to post a comment