mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
18 lines
343 B
Go
18 lines
343 B
Go
package test
|
|
|
|
import (
|
|
"go/build"
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
var EtcdBinPath string
|
|
|
|
func init() {
|
|
// Initialize the 'etcd' binary path or default it to the etcd diretory.
|
|
EtcdBinPath = os.Getenv("ETCD_BIN_PATH")
|
|
if EtcdBinPath == "" {
|
|
EtcdBinPath = filepath.Join(build.Default.GOPATH, "src", "github.com", "coreos", "etcd", "etcd")
|
|
}
|
|
}
|