修改配置文件目录
This commit is contained in:
parent
c1ee180e84
commit
9fb52655a9
2
main.go
2
main.go
|
|
@ -56,7 +56,7 @@ func init() {
|
||||||
os.MkdirAll(proto.CID_BASE_DIR+"workspace", os.ModePerm)
|
os.MkdirAll(proto.CID_BASE_DIR+"workspace", os.ModePerm)
|
||||||
//读取配置文件
|
//读取配置文件
|
||||||
//文件地址/home/saw-ai/saw-ai.conf
|
//文件地址/home/saw-ai/saw-ai.conf
|
||||||
configPath := "/home/saw-ai/saw-ai.conf"
|
configPath := "/home/saw/saw-ai-go/saw-ai.conf"
|
||||||
//读取配置文件
|
//读取配置文件
|
||||||
err := proto.ReadConfig(configPath)
|
err := proto.ReadConfig(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue