mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-22 16:36:07 +01:00
33f99c4fc1
Uses godep to vendor dependencies. Godeps is not necessary during build, golang's new vendor support is used instead.
16 lines
171 B
Go
16 lines
171 B
Go
// +build !static_build
|
|
|
|
package dbus
|
|
|
|
import (
|
|
"os/user"
|
|
)
|
|
|
|
func lookupHomeDir() string {
|
|
u, err := user.Current()
|
|
if err != nil {
|
|
return "/"
|
|
}
|
|
return u.HomeDir
|
|
}
|