|
@@ -6,10 +6,8 @@ import (
|
|
|
"github.com/cnlh/nps/lib/common"
|
|
|
"github.com/cnlh/nps/lib/daemon"
|
|
|
"github.com/cnlh/nps/lib/version"
|
|
|
- "github.com/cnlh/nps/vender/github.com/astaxie/beego"
|
|
|
"github.com/cnlh/nps/vender/github.com/astaxie/beego/logs"
|
|
|
"os"
|
|
|
- "path/filepath"
|
|
|
"strings"
|
|
|
"time"
|
|
|
)
|
|
@@ -61,7 +59,7 @@ func main() {
|
|
|
}
|
|
|
} else {
|
|
|
if *configPath == "" {
|
|
|
- *configPath = filepath.Join(beego.AppPath, "conf", "npc.conf")
|
|
|
+ *configPath = "npc.conf"
|
|
|
}
|
|
|
client.StartFromFile(*configPath)
|
|
|
}
|