Skip to content

Commit

Permalink
Merge pull request #38 from fsspec/windows_home
Browse files Browse the repository at this point in the history
fix windows home path
  • Loading branch information
lkluft authored Sep 26, 2024
2 parents e0fe40a + e4b9e5e commit 350c565
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipfsspec/async_ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 350c565

Please sign in to comment.