From 22a12ae81715f86aca7a49d791eb33066c46193c Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Mon, 28 Nov 2022 19:41:28 -0700 Subject: [PATCH] Bugfix: add cache suffix later --- src/python/cram/v1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/cram/v1.py b/src/python/cram/v1.py index a66763f..eb70efb 100644 --- a/src/python/cram/v1.py +++ b/src/python/cram/v1.py @@ -16,11 +16,11 @@ from .common import Package, sh, stow, expandvars def tempf(global_config, name): - root = Path(global_config["cram"]["root"]) / ".cache" # Config root dir. + root = Path(global_config["cram"]["root"]) assert root.exists() and root.is_dir() cache_dir = global_config.get("cram", {}).get("task", {}).get("default", {}).get("cache_dir") - cache_root = cache_dir and Path(expandvars(cache_dir)) or root + cache_root = cache_dir and Path(expandvars(cache_dir)) or root / ".cache" return cache_root / name[0:2] / name