From dee99b6535171213937898c263ead18cdaf08da8 Mon Sep 17 00:00:00 2001 From: Unbit Date: Sat, 23 Feb 2013 11:57:48 +0100 Subject: [PATCH] try to understand how heroku installed python [9] --- plugins/python/uwsgiplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/uwsgiplugin.py b/plugins/python/uwsgiplugin.py index 5477e8a2..16e48f06 100644 --- a/plugins/python/uwsgiplugin.py +++ b/plugins/python/uwsgiplugin.py @@ -27,7 +27,7 @@ if not 'UWSGI_PYTHON_NOLIB' in os.environ: libdir = sysconfig.get_config_var('LIBPL') # libdir does not exists, try to get it from the venv if not os.path.exists(libdir): - libdir = '%s/lib/python%s/config' % (sysconfig.get_config_var('base'), get_python_version()) + libdir = '%s/lib/python%s/config' % (sys.prefix, get_python_version()) libpath = '%s/%s' % (libdir, sysconfig.get_config_var('LDLIBRARY')) if not os.path.exists(libpath): libpath = '%s/%s' % (libdir, sysconfig.get_config_var('LIBRARY'))