-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could there be an alias for deactivate
e.g., workoff
?
#115
Comments
I don't use conda, so I don't know how it installs itself. virtualenvwrapper-win uses the activate.bat/deactivate.bat files that virtualenv puts in the created venv's scripts folder. If you look at activate.bat, it prepends the scripts folder to the path, so (unless you've done something weird) the scripts\deactivate.bat should always be found first. virtualenvwrapper-win comes with a |
For my case anyway, this scripts folder is the same location as the Miniconda scripts folder. All of the other Does this mean that |
I don't use (mini)conda, so I don't know how it installs itself. I'm assuming that if two different packages tries to install a file with the same name then one of them will "win" - and the other "lose". It is the virtualenv package that installs activate/deactivate.bat for virtualenvwrapper-win and I haven't checked what their installer does if it finds an existing miniconda deactivate.bat file. Might be best not to mix virtualenv managers in the same virtualenv..? |
It might make sense to add an extra option to |
|
I like that... |
As far as I can see from the repo,
virtualenvwrapper-win
does not provide its owndeactivate.bat
batch file. This means that when I rundeactivate
, my machine defaults to theconda deactivate
command by using thedeactivate
file. This (I assume) can happen to others whose base python installation came with the Anaconda or Miniconda distribution. It also means that I cannot deactivate my virtualenvwrapper environment, I can only swap between them.I currently workaround this by creating a copy of the
deactivate
file and calling itdeactivate.bat
. Nowvirtualenvwrapper
will correctly point to this file and deactivate thevirtualenvwrapper
environment.Is it possible for there to be an alias for
deactivate
forvirtualenvwrapper-win
such asworkoff
, or even include adeactivate.bat
file by that name?Please let me know if I am doing something wrong and if the above is possible.
Python via Minconda: 3.9.1
The text was updated successfully, but these errors were encountered: