Skip to content
Permalink
Browse files
fix: more robust place for runtime source file cache (#1436)
* fix: more robust place for runtime source file cache

* fix: existence check
  • Loading branch information
johanneskoester committed Feb 26, 2022
1 parent add9a05 commit 2681f6f163832dfa5214e10f5234d256f5a13407
Showing 1 changed file with 4 additions and 1 deletion.
@@ -284,8 +284,11 @@ def __init__(self, runtime_cache_path=None):
)
os.makedirs(self.cache, exist_ok=True)
if runtime_cache_path is None:
runtime_cache_parent = self.cache / "runtime-cache"
os.makedirs(runtime_cache_parent, exist_ok=True)
self.runtime_cache = tempfile.TemporaryDirectory(
suffix="snakemake-runtime-source-cache"
suffix="snakemake-runtime-source-cache",
dir=runtime_cache_parent,
)
self._runtime_cache_path = None
else:

0 comments on commit 2681f6f

Please sign in to comment.