X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b3a1d9bd41dbcae1ab6726f08922940195868246..2c6c52b2ce930a558f7ce64e475e7ae66dc90163:/wolnelektury.wsgi.template?ds=sidebyside diff --git a/wolnelektury.wsgi.template b/wolnelektury.wsgi.template index 5535819e6..3437e8f3c 100644 --- a/wolnelektury.wsgi.template +++ b/wolnelektury.wsgi.template @@ -10,6 +10,9 @@ import sys # print statements for optional import exceptions. sys.stdout = sys.stderr +# we don't want these packages to cover our virtualenv +sys.path = [p for p in sys.path if not p.startswith('/usr/lib/python2.5/site-packages') and not p.startswith('/var/lib/python-support/python2.5')] + # Add apps and lib directories to PYTHONPATH sys.path = [ '%(path)s/releases/current/%(project_name)s',