loadhook to reload mapping and fvars.
()
| 80 | module_name = modname(fvars) |
| 81 | |
| 82 | def reload_mapping(): |
| 83 | """loadhook to reload mapping and fvars.""" |
| 84 | mod = __import__(module_name, None, None, [""]) |
| 85 | mapping = getattr(mod, mapping_name, None) |
| 86 | if mapping: |
| 87 | self.fvars = mod.__dict__ |
| 88 | self.init_mapping(mapping) |
| 89 | |
| 90 | self.add_processor(loadhook(Reloader())) |
| 91 | if mapping_name and module_name: |
nothing calls this directly
no test coverage detected