fix
parent
8d8fd0a7c5
commit
655fa27e87
|
@ -915,8 +915,8 @@ func WebInit(www *WWW) {
|
|||
|
||||
tpl_path := "tpl"
|
||||
if _, err := os.Stat(tpl_path); errors.Is(err, os.ErrNotExist) {
|
||||
fmt.Println("./tpl not found, trying /usr/local/share/ii-go/tpl..")
|
||||
tpl_path = "/usr/local/share/ii-go/tpl"
|
||||
fmt.Println("./tpl not found, trying /usr/local/share/iigo/tpl..")
|
||||
tpl_path = "/usr/local/share/iigo/tpl"
|
||||
if _, err := os.Stat(tpl_path); errors.Is(err, os.ErrNotExist) {
|
||||
fmt.Println(tpl_path, "not found")
|
||||
os.Exit(1)
|
||||
|
|
Loading…
Reference in New Issue