Skip to content

Commit 350c565

Browse files
authored
Merge pull request #38 from fsspec/windows_home
fix windows home path
2 parents e0fe40a + e4b9e5e commit 350c565

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ipfsspec/async_ipfs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def get_gateway(protocol="ipfs"):
220220

221221
if system == "Windows":
222222
candidates = [
223+
Path.home() / ".ipfs" / "gateway", # on windows, the HOME environment variable may not exist
223224
Path(os.environ.get("LOCALAPPDATA")) / "ipfs" / "gateway",
224225
Path(os.environ.get("APPDATA")) / "ipfs" / "gateway",
225226
Path(os.environ.get("PROGRAMDATA")) / "ipfs" / "gateway",

0 commit comments

Comments
 (0)