Lichen

Change of importer.py

32:be858cd5d1b9
importer.py
     1.1 --- a/importer.py	Mon Sep 05 23:53:52 2016 +0200
     1.2 +++ b/importer.py	Tue Sep 06 00:23:51 2016 +0200
     1.3 @@ -352,10 +352,17 @@
     1.4              for name, ref in resolved.items():
     1.5                  d[name] = ref
     1.6  
     1.7 +                # Find the providing module of this reference.
     1.8 +
     1.9                  module_name = self.get_module_provider(ref)
    1.10                  if module_name:
    1.11                      self.required.add(module_name)
    1.12  
    1.13 +                    # Make this module required in all accessing modules.
    1.14 +
    1.15 +                    for accessor_name in self.accessing_modules[module_name]:
    1.16 +                        self.modules[accessor_name].required.add(module_name)
    1.17 +
    1.18      def find_dependency(self, ref):
    1.19  
    1.20          "Find the ultimate dependency for 'ref'."