Add enviroment context for compat shell

This commit is contained in:
Dan Ryan
2017-10-14 03:06:59 -04:00
parent f7f16d1e3b
commit 4fe1bf223c
+11 -7
View File
@@ -2024,14 +2024,18 @@ def do_shell(three=None, python=False, fancy=False, shell_args=None):
terminal_dimensions = get_terminal_size()
try:
c = pexpect.spawn(
cmd,
args,
dimensions=(
terminal_dimensions.lines,
terminal_dimensions.columns
with temp_environ():
if PIPENV_VENV_IN_PROJECT:
os.environ['WORKON_HOME'] = project.project_directory
c = pexpect.spawn(
cmd,
args,
dimensions=(
terminal_dimensions.lines,
terminal_dimensions.columns
)
)
)
# Windows!
except AttributeError: