1.1 --- a/importer.py Thu Sep 08 14:03:19 2016 +0200
1.2 +++ b/importer.py Thu Sep 08 18:07:07 2016 +0200
1.3 @@ -372,10 +372,19 @@
1.4 else:
1.5 self.required.add(provider)
1.6
1.7 + # Check modules again to see if they are now required and should now
1.8 + # cause the inclusion of other modules providing objects to the program.
1.9 +
1.10 for module_name in self.waiting.keys():
1.11 self.require_providers(module_name)
1.12
1.13 def require_providers(self, module_name):
1.14 +
1.15 + """
1.16 + Test if 'module_name' is itself required and, if so, require modules
1.17 + containing objects provided to the module.
1.18 + """
1.19 +
1.20 if module_name in self.required and self.waiting.has_key(module_name):
1.21 for provider in self.waiting[module_name]:
1.22 if provider not in self.required: