1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-11-21 21:50:58 -05:00

Fix data dir location on MacOS

This commit is contained in:
Sébastien Eustace 2021-03-19 15:22:49 +01:00 committed by Arun Babu Neelicattu
parent 2ab6536563
commit 3f25be6bdb

View file

@ -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")