Created
January 24, 2013 18:22
-
-
Save matagus/4626042 to your computer and use it in GitHub Desktop.
Post activate hook for virtualenvwrapper for loading env variables /paht/to/your/virtualenvs/postactivate
This file contains 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. | |
envname="$(basename $VIRTUAL_ENV)" | |
if [ -e ".env" ] | |
then | |
source .env | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment