We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9d5a27 commit 4b82203Copy full SHA for 4b82203
firedrake/configuration.py
@@ -5,7 +5,7 @@
5
6
7
def setup_cache_dirs():
8
- root = Path(os.environ.get("VIRTUAL_ENV", "~")).joinpath(".cache")
+ root = Path(os.environ.get("VIRTUAL_ENV", Path.home())).joinpath(".cache")
9
if "PYOP2_CACHE_DIR" not in os.environ:
10
os.environ["PYOP2_CACHE_DIR"] = str(root.joinpath("pyop2"))
11
if 'FIREDRAKE_TSFC_KERNEL_CACHE_DIR' not in os.environ:
0 commit comments