Commit 5e70eb8d by Bjorn Neergaard Committed by Arun Babu Neelicattu

Make `self update` respect `$POETRY_HOME`

parent b6f849ea
......@@ -39,9 +39,7 @@ class SelfUpdateCommand(Command):
from poetry.utils._compat import Path
from poetry.utils.appdirs import expanduser
home = Path(expanduser("~"))
return home / ".poetry"
return Path(os.environ.get("POETRY_HOME", expanduser("~/.poetry")))
@property
def lib(self):
......
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