From 93b14e6c1986852d444bf6fa6e98d78fe5ca1b88 Mon Sep 17 00:00:00 2001 From: Cameron Smith Date: Tue, 18 Oct 2022 13:23:31 -0400 Subject: [PATCH] patch for config update problem spack #26169 --- lib/spack/spack/cmd/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/cmd/config.py b/lib/spack/spack/cmd/config.py index 06f6477dfd6..a90679e6bc7 100644 --- a/lib/spack/spack/cmd/config.py +++ b/lib/spack/spack/cmd/config.py @@ -258,7 +258,7 @@ def config_update(args): cannot_overwrite, skip_system_scope = [], False for scope in updates: cfg_file = spack.config.config.get_config_filename(scope.name, args.section) - scope_dir = scope.path + scope_dir = os.path.dirname(scope.path) can_be_updated = _can_update_config_file(scope_dir, cfg_file) if not can_be_updated: if scope.name == "system":