Skip to content

Commit

Permalink
Fix issue when PATH is missing in os.environ
Browse files Browse the repository at this point in the history
Closes #3144
  • Loading branch information
Michel Albert authored and abn committed Oct 8, 2020
1 parent 495a6ed commit 6a96dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ def unset_env(self, key):
del os.environ[key]

def _updated_path(self):
return os.pathsep.join([str(self._bin_dir), os.environ["PATH"]])
return os.pathsep.join([str(self._bin_dir), os.environ.get("PATH", "")])


class NullEnv(SystemEnv):
Expand Down

0 comments on commit 6a96dd2

Please sign in to comment.