Skip to content

Commit

Permalink
Handle env kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty committed Aug 1, 2019
1 parent 5f755b5 commit e5ebabe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion poetry/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,11 @@ def execute(self, bin, *args, **kwargs):
bin = self._bin(bin)

if not self._is_windows:
return os.execvp(bin, [bin] + list(args))
args = [bin] + list(args)
if "env" in kwargs:
return os.execvpe(bin, args, kwargs["env"])
else:
return os.execvp(bin, args)
else:
exe = subprocess.Popen([bin] + list(args), **kwargs)
exe.communicate()
Expand Down

0 comments on commit e5ebabe

Please sign in to comment.