Associate project dir with new virtual environment

This lets pew know which directory to switch to when activating an
environment with `pew workon foo`.
This commit is contained in:
Charlie Denton
2018-03-27 20:30:48 +01:00
parent 77a04cf7e7
commit a35b15711a
+2
View File
@@ -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: