From 9ef4bc9d50bf5951e0ca67ab1f8ab950f4c036fc Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Tue, 16 Jul 2019 13:56:08 -0600 Subject: [PATCH] Add macro for expanding home directory --- lib/spack/spack/util/path.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/spack/spack/util/path.py b/lib/spack/spack/util/path.py index 20b1d8b41fd..e7d7a9d6199 100644 --- a/lib/spack/spack/util/path.py +++ b/lib/spack/spack/util/path.py @@ -25,6 +25,7 @@ 'spack': spack.paths.prefix, 'user': getpass.getuser(), 'tempdir': tempfile.gettempdir(), + 'home': os.path.expanduser('~'), }