support for virtualenv in pypy

This commit is contained in:
roberto@mrspurr
2012-04-04 17:29:00 +02:00
parent 1a61dfd4e0
commit 43c258ad48
2 changed files with 3 additions and 6 deletions
+1 -5
View File
@@ -154,7 +154,6 @@ int uwsgi_python_init() {
uwsgi_log_initial("PyPy version: %s\n", PYPY_VERSION);
#endif
#ifndef UWSGI_PYPY
if (up.home != NULL) {
#ifdef PYTHREE
wchar_t *wpyhome;
@@ -173,16 +172,15 @@ int uwsgi_python_init() {
uwsgi_log("Set PythonHome to %s\n", up.home);
}
#ifdef PYTHREE
wchar_t pname[6];
mbstowcs(pname, "uWSGI", 6);
Py_SetProgramName(pname);
#else
Py_SetProgramName("uWSGI");
#endif
#endif
#ifndef UWSGI_PYPY
Py_OptimizeFlag = up.optimize;
@@ -281,9 +279,7 @@ void uwsgi_python_atexit() {
PyErr_Clear();
}
#ifndef UWSGI_PYPY
Py_Finalize();
#endif
}
void uwsgi_python_post_fork() {