virtualenv package provides an
activate_this.py script to allow activating a virtualenv at runtime (saving the overhead of spooling up a second Python process).
pkg_resources prepares some internal state (
working_set, etc) depending on which virtualenv is active when it’s imported.
Is it possible to manually tell
pkg_resources to update its internal state? I
pkg_resources to provide information on the new virtualenv after it’s activated, and I’ll happily inform it after the activation has completed