mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Merge branch 'master' into toml-docs-update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user