This commit is contained in:
Liang Ding 2014-10-21 10:47:16 +08:00
parent 32eaa1cb0e
commit d2b6d34c51
2 changed files with 6 additions and 3 deletions

View File

@ -17,8 +17,11 @@ import (
"github.com/golang/glog"
)
// 系统文件路径分隔符.
const PathSeparator = string(os.PathSeparator)
const (
PathSeparator = string(os.PathSeparator) // 系统文件路径分隔符
PathListSeparator = string(os.PathListSeparator) // 系统路径列表分隔符
)
// 最后一次会话内容结构.
type LatestSessionContent struct {

View File

@ -630,7 +630,7 @@ func setCmdEnv(cmd *exec.Cmd, username string) {
masterWorkspace := conf.Wide.GetWorkspace()
cmd.Env = append(cmd.Env,
"GOPATH="+userWorkspace+string(os.PathListSeparator)+masterWorkspace,
"GOPATH="+userWorkspace+conf.PathListSeparator+masterWorkspace,
"GOOS="+runtime.GOOS,
"GOARCH="+runtime.GOARCH,
"GOROOT="+runtime.GOROOT(),