Skip to content

Commit

Permalink
fix: more robust place for runtime source file cache (#1436)
Browse files Browse the repository at this point in the history
* fix: more robust place for runtime source file cache

* fix: existence check
  • Loading branch information
johanneskoester committed Feb 26, 2022
1 parent add9a05 commit 2681f6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snakemake/sourcecache.py
Expand Up @@ -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:
Expand Down

0 comments on commit 2681f6f

Please sign in to comment.