diff --git a/news/3499.docs.rst b/news/3499.doc.rst similarity index 100% rename from news/3499.docs.rst rename to news/3499.doc.rst diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py index f1fac2b2..33388cc4 100644 --- a/pipenv/cli/command.py +++ b/pipenv/cli/command.py @@ -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