Skip to content

Commit 4b82203

Browse files
authored
Use Path.home() instead of ~ for determining HOME (#4212)
1 parent f9d5a27 commit 4b82203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firedrake/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def setup_cache_dirs():
8-
root = Path(os.environ.get("VIRTUAL_ENV", "~")).joinpath(".cache")
8+
root = Path(os.environ.get("VIRTUAL_ENV", Path.home())).joinpath(".cache")
99
if "PYOP2_CACHE_DIR" not in os.environ:
1010
os.environ["PYOP2_CACHE_DIR"] = str(root.joinpath("pyop2"))
1111
if 'FIREDRAKE_TSFC_KERNEL_CACHE_DIR' not in os.environ:

0 commit comments

Comments
 (0)