Ticket #13404: loader.diff
File loader.diff, 598 bytes (added by , 15 years ago) |
---|
-
django/utils/module_loading.py
diff -r 82ee1efc2706 django/utils/module_loading.py
a b 5 5 # If the module was loaded from an egg, __loader__ will be set and 6 6 # its find_module must be used to search for submodules. 7 7 loader = getattr(mod, '__loader__', None) 8 if loader :8 if loader and hasattr(loader, 'prefix'): 9 9 mod_path = "%s.%s" % (mod.__name__, submod_name) 10 10 mod_path = mod_path[len(loader.prefix):] 11 11 x = loader.find_module(mod_path)