This commit is contained in:
parent
32eaa1cb0e
commit
d2b6d34c51
|
@ -17,8 +17,11 @@ import (
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
)
|
)
|
||||||
|
|
||||||
// 系统文件路径分隔符.
|
const (
|
||||||
const PathSeparator = string(os.PathSeparator)
|
PathSeparator = string(os.PathSeparator) // 系统文件路径分隔符
|
||||||
|
PathListSeparator = string(os.PathListSeparator) // 系统路径列表分隔符
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
// 最后一次会话内容结构.
|
// 最后一次会话内容结构.
|
||||||
type LatestSessionContent struct {
|
type LatestSessionContent struct {
|
||||||
|
|
|
@ -630,7 +630,7 @@ func setCmdEnv(cmd *exec.Cmd, username string) {
|
||||||
masterWorkspace := conf.Wide.GetWorkspace()
|
masterWorkspace := conf.Wide.GetWorkspace()
|
||||||
|
|
||||||
cmd.Env = append(cmd.Env,
|
cmd.Env = append(cmd.Env,
|
||||||
"GOPATH="+userWorkspace+string(os.PathListSeparator)+masterWorkspace,
|
"GOPATH="+userWorkspace+conf.PathListSeparator+masterWorkspace,
|
||||||
"GOOS="+runtime.GOOS,
|
"GOOS="+runtime.GOOS,
|
||||||
"GOARCH="+runtime.GOARCH,
|
"GOARCH="+runtime.GOARCH,
|
||||||
"GOROOT="+runtime.GOROOT(),
|
"GOROOT="+runtime.GOROOT(),
|
||||||
|
|
Loading…
Reference in New Issue