Created
June 5, 2014 17:31
-
-
Save binaryatrocity/69ec1128bb7fdad91821 to your computer and use it in GitHub Desktop.
Activate VENV for WSGI
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
import os | |
os.chdir(os.path.abspath(os.path.split(__file__)[0])) | |
activate_this = os.path.join(os.path.split(__file__)[0], 'venv', 'bin', 'activate_this.py') | |
execfile(activate_this, dict(__file__=activate_this)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment