From e4b9e5e736b7f5f5466d31014b55eb7351c2c477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=B6lling?= Date: Thu, 26 Sep 2024 10:18:29 -0400 Subject: [PATCH] fix windows home path --- ipfsspec/async_ipfs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipfsspec/async_ipfs.py b/ipfsspec/async_ipfs.py index 879ce14..a6dc270 100644 --- a/ipfsspec/async_ipfs.py +++ b/ipfsspec/async_ipfs.py @@ -220,6 +220,7 @@ def get_gateway(protocol="ipfs"): if system == "Windows": candidates = [ + Path.home() / ".ipfs" / "gateway", # on windows, the HOME environment variable may not exist Path(os.environ.get("LOCALAPPDATA")) / "ipfs" / "gateway", Path(os.environ.get("APPDATA")) / "ipfs" / "gateway", Path(os.environ.get("PROGRAMDATA")) / "ipfs" / "gateway",