You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
398 B

package iconf
// just for nightingale only
import (
"path"
"github.com/toolkits/pkg/file"
"github.com/toolkits/pkg/runner"
)
func GetYmlFile(module string) string {
confdir := path.Join(runner.Cwd, "etc")
yml := path.Join(confdir, module+".local.yml")
if file.IsExist(yml) {
return yml
}
yml = path.Join(confdir, module+".yml")
if file.IsExist(yml) {
return yml
}
return ""
}