virtualenvutils — Utilities for virtualenvs


Returns True if we are in a virtualenv.


Get the root directory of the current virtualenv.

Raises OSError if not in a virtualenv.


Add get_virtualenv_directory() to os.environ['PATH'].

Why do we need this? This is used to work around limitations in how certain IDE’s implement virtualenv support. They may add the virtualenv to PYTHONPATH, but to to PATH.