##// END OF EJS Templates
demandimport: handle already-loaded nested modules in subload
Brendan Cully -
r3926:de6ae8f0 default
parent child Browse files
Show More
@@ -51,7 +51,7 b' class _demandmod(object):'
51 h, t = p.split('.', 1)
51 h, t = p.split('.', 1)
52 if not hasattr(mod, h):
52 if not hasattr(mod, h):
53 setattr(mod, h, _demandmod(p, mod.__dict__, mod.__dict__))
53 setattr(mod, h, _demandmod(p, mod.__dict__, mod.__dict__))
54 else:
54 elif t:
55 subload(getattr(mod, h), t)
55 subload(getattr(mod, h), t)
56
56
57 for x in after:
57 for x in after:
General Comments 0
You need to be logged in to leave comments. Login now