use realpath() for document_root

This commit is contained in:
roberto@longshot
2011-04-05 20:55:48 +02:00
parent b0db67d4d4
commit d4f23cc6bd
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -439,6 +439,7 @@ PyObject *uwsgi_uwsgi_loader(void *arg1) {
if (quick_callable[strlen(quick_callable) -2 ] == '(' && quick_callable[strlen(quick_callable) -1] ==')') {
quick_callable[strlen(quick_callable) -2 ] = 0;
tmp_callable = PyDict_GetItemString(wsgi_dict, quick_callable);
quick_callable[strlen(quick_callable) -2 ] = '(';
if (tmp_callable) {
return python_call(tmp_callable, PyTuple_New(0), 0);
}