This commit is contained in:
cdle 2021-08-18 16:39:59 +08:00
parent b76c98a06b
commit 70aa85fe87

View File

@ -35,6 +35,7 @@ type Yaml struct {
Npm string
Python string
Pip string
NoAdmin bool `yaml:"no_admin"`
}
var Balance = "balance"
@ -45,7 +46,7 @@ var Cdle = false
var Config Yaml
func initConfig() {
if ExecPath == "/Users/cdle/Desktop/xdd" {
if ExecPath == "/Users/cdle/Desktop/xdd" || Config.NoAdmin {
Cdle = true
}
confDir := ExecPath + "/conf"