Skip to content

Commit

Permalink
fix windows home path
Browse files Browse the repository at this point in the history
  • Loading branch information
d70-t committed Sep 26, 2024
1 parent e0fe40a commit e4b9e5e
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 e4b9e5e

Please sign in to comment.