Commit aeb69791 by Sébastien Eustace

Fix get-poetry.py when no shell is available

parent 1f777bd3
...@@ -702,7 +702,7 @@ class Installer: ...@@ -702,7 +702,7 @@ class Installer:
def get_unix_profiles(self): def get_unix_profiles(self):
profiles = [os.path.join(HOME, ".profile")] profiles = [os.path.join(HOME, ".profile")]
shell = os.getenv("SHELL") shell = os.getenv("SHELL", "")
if "zsh" in shell: if "zsh" in shell:
zdotdir = os.getenv("ZDOTDIR", HOME) zdotdir = os.getenv("ZDOTDIR", HOME)
profiles.append(os.path.join(zdotdir, ".zprofile")) profiles.append(os.path.join(zdotdir, ".zprofile"))
......
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