virtualenvcontext

Switch virtualenvs with a Python context manager
Download

virtualenvcontext Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL v3
  • Publisher Name:
  • Ralph Bean
  • Publisher web site:
  • http://github.com/ralphbean/

virtualenvcontext Tags


virtualenvcontext Description

Switch virtualenvs with a Python context manager virtualenvcontext is a Python module to switch virtualenvs with a Python context manager.Example:>>> from virtualenvcontext import VirtualenvContext>>> try:>>> import kitchen>>> except ImportError as e:>>> print "kitchen is definitely not installed in system-python">>> with VirtaulenvContext("my-venv"):>>> import kitchen>>> print "But it *is* installed in my virtualenv">>> try:>>> import kitchen>>> except ImportError as e:>>> print "But once I exit that block, I lose my powers again..."Caveat:It expects that you're using virtualenvwrapper but you should be anyways.Get this project:Source: http://github.com/ralphbean/virtualenvcontext/pypi: http://pypi.python.org/pypi/virtualenvcontext/ Requirements: · Python


virtualenvcontext Related Software