lxd/util/sys.go
func GetExecPath() string {
	execPath := os.Getenv("LXD_EXEC_PATH")
	if execPath != "" {
		return execPath
	}

	execPath, err := os.Readlink("/proc/self/exe")
	if err != nil {
		execPath = "bad-exec-path"
	}
	return execPath
}
func GetExecPath() string {
	execPath := os.Getenv("LXD_EXEC_PATH")
	if execPath != "" {
		return execPath
	}

	execPath, err := os.Readlink("/proc/self/exe")
	if err != nil {
		execPath = "bad-exec-path"
	}
	return execPath
}
func GetExecPath ( ) string { execPath := os . Getenv ( " " ) if execPath != " " { return execPath } execPath , err := os . Readlink ( " " ) if err != nil { execPath = " " } return execPath }
// GetExecPath returns the path to the current binary
GetExecPath returns the path to the current binary