From a35b15711adb5a57cfcf98feeeb1d4da71d0110e Mon Sep 17 00:00:00 2001 From: Charlie Denton Date: Tue, 27 Mar 2018 20:30:48 +0100 Subject: [PATCH] Associate project dir with new virtual environment This lets pew know which directory to switch to when activating an environment with `pew workon foo`. --- pipenv/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pipenv/core.py b/pipenv/core.py index a54ed83d..07393434 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -904,6 +904,8 @@ def do_create_virtualenv(python=None, site_packages=False): 'new', project.virtualenv_name, '-d', + '-a', + project.project_directory, ] # Default to using sys.executable, if Python wasn't provided. if not python: