mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
14 lines
225 B
Go
14 lines
225 B
Go
package utils
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// GetDataDir returns the data directory path from environment or default
|
|
func GetDataDir() string {
|
|
if dir := os.Getenv("PULSE_DATA_DIR"); dir != "" {
|
|
return dir
|
|
}
|
|
return "/etc/pulse"
|
|
}
|