Skip to content

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

Description

@appleyuchi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions