Created
June 5, 2011 20:42
-
-
Save brainsik/1009402 to your computer and use it in GitHub Desktop.
Keep per virtualenv postactivate scripts in WORKON_HOME
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This hook is run after every virtualenv is activated. | |
script="$VIRTUALENVWRAPPER_HOOK_DIR/postactivate-"$(basename $VIRTUAL_ENV) | |
if [ -r $script ]; then | |
source $script | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment