another heroku check [3]

This commit is contained in:
Unbit
2013-02-23 12:54:00 +01:00
parent 99eda6d084
commit e96c43970d
+1
View File
@@ -27,6 +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
version = get_python_version()
print(os.listdir('%s/lib' % sys.prefix))
if not os.path.exists(libdir):
libdir = '%s/lib/python%s/config' % (sys.prefix, version)
if not os.path.exists(libdir) and version.endswith('m'):