Open
Description
Story:
I had a venv activated and decided to do mktmpenv to test some dependencies. Now that I want to switch back, I noticed the original is not there...
Step to reproduce:
mkvirtualenv test_gh
- deactivates and activates normallymktmpenv --help
- this cds into it and makes theREADME.tmpenv
filedeactivate
- removes the venv (I didmktmpenv
properly and it automatically deactivated the previous one without me noticing)
Related: mktmpenv
shows mkvirtualenv
's help + "This is a temporary environment. It will be deleted when you run 'deactivate'.". (I didn't notice it at first/thought it's just what command appends and didn't think it's about my current env)
mktmpenv sees mkvirtualenv --help
as successful call (because it is!) and continues with making currently active venv as temporary... Solution would be to find --help/-h early and just call mkvirtualenv --help
and not continue.