From 8d2394eba13f1c18c1a24dfe8c9461dcf3e08c47 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Tue, 16 Aug 2011 07:33:46 +0200 Subject: [PATCH] better name handling in --wsgi-file --- plugins/python/pyloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/pyloader.c b/plugins/python/pyloader.c index 36d4a170..4687cbb3 100644 --- a/plugins/python/pyloader.c +++ b/plugins/python/pyloader.c @@ -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);