This commit is contained in:
parent
32eaa1cb0e
commit
d2b6d34c51
|
@ -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 {
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue