diff --git a/conf/wide.go b/conf/wide.go index 6a5b67b..4503c25 100644 --- a/conf/wide.go +++ b/conf/wide.go @@ -125,8 +125,7 @@ func initUsers(confUsers string) { user := &User{} - bytes, _ := ioutil.ReadFile("conf/users/" + name) - + bytes, _ := ioutil.ReadFile(filepath.Join(confUsers, name)) err := json.Unmarshal(bytes, user) if err != nil { logger.Errorf("Parses [%s] error: %v, skip loading this user", name, err) diff --git a/main.go b/main.go index dc0ff02..3a5ac61 100644 --- a/main.go +++ b/main.go @@ -66,9 +66,6 @@ func init() { log.SetLevel("warn") logger = log.NewLogger(os.Stdout) - logger.Warn(*confUsers) - logger.Warn(*confUsersWorkspaces) - //wd := util.OS.Pwd() //if strings.HasPrefix(wd, os.TempDir()) { // logger.Error("Don't run Wide in OS' temp directory or with `go run`")