Commit e359ba50 by Sébastien Eustace Committed by Arun Babu Neelicattu

Fix data dir location on MacOS

parent 8cf7bf7a
...@@ -141,8 +141,6 @@ def data_dir(version: Optional[str] = None) -> Path: ...@@ -141,8 +141,6 @@ def data_dir(version: Optional[str] = None) -> Path:
path = os.path.join(path, "pypoetry") path = os.path.join(path, "pypoetry")
elif MACOS: elif MACOS:
path = os.path.expanduser("~/Library/Application Support/pypoetry") path = os.path.expanduser("~/Library/Application Support/pypoetry")
if not os.path.isdir(path):
path = os.path.expanduser("~/.config/pypoetry")
else: else:
path = os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share")) path = os.getenv("XDG_DATA_HOME", os.path.expanduser("~/.local/share"))
path = os.path.join(path, "pypoetry") path = os.path.join(path, "pypoetry")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment