support for data:// in import/module

This commit is contained in:
roberto@debian32
2011-07-31 19:42:24 +02:00
parent 6d5e089e4e
commit 1d64e46fcd
+1 -1
View File
@@ -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) {