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) {