Skip to content

Commit

Permalink
Fix data dir location on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
sdispater authored and abn committed Mar 30, 2021
1 parent 8cf7bf7 commit e359ba5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions install-poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ def data_dir(version: Optional[str] = None) -> Path:
path = os.path.join(path, "pypoetry")
elif MACOS:
path = os.path.expanduser("~/Library/Application Support/pypoetry")
if not os.path.isdir(path):
path = os.path.expanduser("~/.config/pypoetry")
else:
path = os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share"))
path = os.path.join(path, "pypoetry")
Expand Down

0 comments on commit e359ba5

Please sign in to comment.