mirror of
https://gitee.com/johng/gf
synced 2026-06-30 11:05:11 +08:00
修改框架环境变量都加上gf.前缀
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user