sublime-text-virtualenv icon indicating copy to clipboard operation
sublime-text-virtualenv copied to clipboard

how to automatically enter into virtualenv-python2.7 without manually activate?Thanks

Open appleyuchi opened this issue 5 years ago • 1 comments

Sorry to interrupt. Could you tell me how to automatically enter virtualenv without manually activate? I want an effect like this: ①double click a xx.py file and enter into sublime ②without manual activate the virtualenv,it already enter into python2.7 of virtualenv ③if I want to change to virtualenv-python3.5,I can use shift+ctrl+p->activate->python3.5

Why I want this effect? Because in my .bashrc ,I added the following 3 lines **alias py2.7="source /home/appleyuchi/.virtualenvs/python2.7/bin/activate&&deactivate&&source /home/appleyuchi/.virtualenvs/python2.7/bin/activate"

alias py3.5="source /home/appleyuchi/.virtualenvs/python3.5/bin/activate&&deactivate&&source /home/appleyuchi/.virtualenvs/python3.5/bin/activate" py2.7**

So,dear sir ,does sublime-text-virtualenv has similar settings? Thanks very much . if i lauch sublime in terminal already in virtualenv-python2.7,then I cannot use sublime-text-virtualenv to change to python3.5,so this is not a good solution. Many Thanks again

appleyuchi avatar Sep 18 '18 11:09 appleyuchi

I mean,my terminal can automatically enter into virtualenv-python2.7 and switch between 2.7 and 3.5 with above two "alias commands" Does this sublime plugin has similar functions? thanks

appleyuchi avatar Sep 18 '18 11:09 appleyuchi