try to understand how heroku installed python [9]

This commit is contained in:
Unbit
2013-02-23 11:57:48 +01:00
parent 39260ebac0
commit dee99b6535
+1 -1
View File
@@ -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'))