From 80da1d50d1270bdd7b900f56e9edf87574d64ea8 Mon Sep 17 00:00:00 2001 From: Carson Woods Date: Tue, 16 Jul 2019 14:34:14 -0600 Subject: [PATCH] Make var_path point to ~/.spack/var/spack --- lib/spack/spack/paths.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/spack/spack/paths.py b/lib/spack/spack/paths.py index 2f7ccf3b5da..319d4611c4a 100644 --- a/lib/spack/spack/paths.py +++ b/lib/spack/spack/paths.py @@ -16,6 +16,9 @@ #: This file lives in $prefix/lib/spack/spack/__file__ prefix = ancestor(__file__, 4) +#: User configuration location +user_config_path = os.path.expanduser('~/.spack') + #: synonym for prefix spack_root = prefix @@ -37,7 +40,7 @@ operating_system_path = os.path.join(module_path, 'operating_systems') test_path = os.path.join(module_path, "test") hooks_path = os.path.join(module_path, "hooks") -var_path = os.path.join(prefix, "var", "spack") +var_path = os.path.join(user_config_path, "var", "spack") stage_path = os.path.join(var_path, "stage") repos_path = os.path.join(var_path, "repos") share_path = os.path.join(prefix, "share", "spack") @@ -46,9 +49,6 @@ packages_path = os.path.join(repos_path, "builtin") mock_packages_path = os.path.join(repos_path, "builtin.mock") -#: User configuration location -user_config_path = os.path.expanduser('~/.spack') - opt_path = os.path.join(prefix, "opt") etc_path = os.path.join(prefix, "etc")