From 9386a507ba7ed7dd41e08683c26f1c813751cc57 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Tue, 12 Jul 2022 20:33:45 -0400 Subject: [PATCH] Using absolute path in cache --- src/transpose/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transpose/utils.py b/src/transpose/utils.py index fbe7c53..35b95d3 100644 --- a/src/transpose/utils.py +++ b/src/transpose/utils.py @@ -41,7 +41,7 @@ def create_cache(cache_path: Path, original_path: Path) -> None: Returns: None """ - template = {"version": version, "original_path": str(original_path)} + template = {"version": version, "original_path": str(original_path.absolute())} with open(str(cache_path), "w") as f: json.dump(template, f)