Merge pull request #3601 from pypa/bugfix/2747

Port #3263 with updates
This commit is contained in:
Dan Ryan
2019-03-25 09:23:24 -04:00
committed by GitHub
+2 -1
View File
@@ -553,7 +553,7 @@ def run_open(state, module, *args, **kwargs):
EDITOR=atom pipenv open requests
"""
from ..core import which, ensure_project
from ..core import which, ensure_project, inline_activate_virtual_environment
# Ensure that virtualenv is available.
ensure_project(
@@ -573,6 +573,7 @@ def run_open(state, module, *args, **kwargs):
else:
p = c.out.strip().rstrip("cdo")
echo(crayons.normal("Opening {0!r} in your EDITOR.".format(p), bold=True))
inline_activate_virtual_environment()
edit(filename=p)
return 0