Commit 88fd9cf4 by Sébastien Eustace

Make executable from outside the virtualenv acessible

parent f597d1fc
......@@ -302,6 +302,8 @@ class Env(object):
Return path to the given executable.
"""
bin_path = (self._bin_dir / bin).with_suffix(".exe" if self._is_windows else "")
if not bin_path.exists():
return bin
return str(bin_path)
......
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