From 1d64e46fcda46b763086b5db4f4fddb37551a65e Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 31 Jul 2011 19:42:24 +0200 Subject: [PATCH] support for data:// in import/module --- plugins/python/python_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python/python_plugin.c b/plugins/python/python_plugin.c index 87f656a1..4b3ea72f 100644 --- a/plugins/python/python_plugin.c +++ b/plugins/python/python_plugin.c @@ -196,7 +196,7 @@ PyObject *uwsgi_pyimport_by_filename(char *name, char *filename) { char *real_filename = filename; - if (strncmp(filename, "http://", 7) && strncmp(filename, "sym://", 6)) { + if (strncmp(filename, "http://", 7) && strncmp(filename, "sym://", 6) && strncmp(filename, "data://", 6)) { pyfile = fopen(filename, "r"); if (!pyfile) {