python - How do I get into my virtualenv quicker? Custom commands? -


everytime want terminal have type sequence in terminal (im on mac osx lion terminal):

>public/projects/installs # location of venv  >. venv/bin/activate # activates venv within terminal 

is anyway faster or create custom function/ command in terminal?

there virtualenvwrapper. allows switch virtualenvs typing workon <env_name>. create virtualenvs mkvirtualenv <env_name> or mkproject <project_name> if have set project_home , want working directory there.

you can lot more switch venvs, though. example can set hooks performed every new venv (installing ipython if want to, set .hgignore) , when activating 1 (e.g. setting path if have things installed via npm).


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -