Commit 6a96dd22 by Michel Albert Committed by Arun Babu Neelicattu

Fix issue when PATH is missing in os.environ

Closes #3144
parent 495a6ed0
...@@ -1212,7 +1212,7 @@ class VirtualEnv(Env): ...@@ -1212,7 +1212,7 @@ class VirtualEnv(Env):
del os.environ[key] del os.environ[key]
def _updated_path(self): 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): class NullEnv(SystemEnv):
......
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