westurner / dotfiles

Bash, Python, IPython scripts, and userspace configuration https://westurner.org/dotfiles/

Home Page:https://westurner.org/dotfiles/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG,UBY: venv: deactivate resets WORKON_HOME to the default

westurner opened this issue · comments

venv is setting WORKON_HOME to the default set in venv.py.

Instead:

  • venv could set WORKON_HOME to os.environ.get('WORKON_HOME', opts.WORKON_HOME if opts.WORKON_HOME else default_workon_home) when: WORKON)

cases:

  • using venv.py for a prefix template
  • using venv.py for a virtualenv
  • using venv.py for a conda env
  • using venv.py with -E/--from-environ