blob: 6b450bebdf821cf5c5a1ccc23d7c85b5eb880a53 [file] [log] [blame]
// Copyright 2013 Canonical Ltd.
// Licensed under the LGPLv3, see LICENCE file for details.
// +build !windows
package utils
import (
"os"
)
// Home returns the os-specific home path as specified in the environment.
func Home() string {
return os.Getenv("HOME")
}
// SetHome sets the os-specific home path in the environment.
func SetHome(s string) error {
return os.Setenv("HOME", s)
}