Skip to content

可以在这里把cfg的目录也作为default配置文件目录吗 #5

@carolove

Description

@carolove

增加

dir = filepath.Join(filepath.Dir(exec), "cfg")
if files.NotExist(dir) {
	wd, err := os.Getwd()
	if err == nil {
		dir = filepath.Join(wd, "cfg")
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions