mirror of
https://github.com/python-poetry/install.python-poetry.org.git
synced 2024-11-24 23:10:57 -05:00
Fix data dir location on MacOS
This commit is contained in:
parent
2ab6536563
commit
3f25be6bdb
1 changed files with 0 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue