diff --git a/wsgi/dispatch.wsgi b/wsgi/dispatch.wsgi index 68cd5368ac..3736618102 100644 --- a/wsgi/dispatch.wsgi +++ b/wsgi/dispatch.wsgi @@ -1,11 +1,11 @@ import os import sys import site +import platform sys.stdout = sys.stderr -#TODO fix properly -ve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'lib/python2.7/site-packages')) # Change python 2.6 to the python version you are using +ve_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'lib/python%s/site-packages' % platform.python_version()[:3])) # Add the virtual Python environment site-packages directory to the path site.addsitedir(ve_path)