修改框架环境变量都加上gf.前缀

This commit is contained in:
John
2018-04-17 14:56:14 +08:00
parent c7e15011cf
commit 4f17feae92

View File

@ -65,7 +65,7 @@ func View() *gview.View {
} else {
path := gcmd.Option.Get("viewpath")
if path == "" {
path = genv.Get("viewpath")
path = genv.Get("gf.viewpath")
if path == "" {
path = gfile.SelfDir()
}
@ -86,7 +86,7 @@ func Config() *gcfg.Config {
} else {
path := gcmd.Option.Get("cfgpath")
if path == "" {
path = genv.Get("cfgpath")
path = genv.Get("gf.cfgpath")
if path == "" {
path = gfile.SelfDir()
}