better name handling in --wsgi-file

This commit is contained in:
roberto@debian32
2011-08-16 07:33:46 +02:00
parent 6f5b468b11
commit 8d2394eba1
+1 -1
View File
@@ -513,7 +513,7 @@ PyObject *uwsgi_file_loader(void *arg1) {
char *callable = up.callable;
if (!callable) callable = "application";
wsgi_file_module = uwsgi_pyimport_by_filename(uwsgi_pythonize(filename), filename);
wsgi_file_module = uwsgi_pyimport_by_filename(uwsgi_concat2("uwsgi_file_", uwsgi_pythonize(filename)), filename);
if (!wsgi_file_module) {
PyErr_Print();
exit(1);