Skip to content

Instantly share code, notes, and snippets.

@binaryatrocity
Created June 5, 2014 17:31
Show Gist options
  • Save binaryatrocity/69ec1128bb7fdad91821 to your computer and use it in GitHub Desktop.
Save binaryatrocity/69ec1128bb7fdad91821 to your computer and use it in GitHub Desktop.
Activate VENV for WSGI
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