555 components = modName.split('.') |
555 components = modName.split('.') |
556 for comp in components[1:]: |
556 for comp in components[1:]: |
557 mod = getattr(mod, comp) |
557 mod = getattr(mod, comp) |
558 return mod |
558 return mod |
559 except ImportError: |
559 except ImportError: |
560 E5MessageBox.critical(self, |
560 E5MessageBox.critical( |
|
561 self, |
561 self.trUtf8("Configuration Page Error"), |
562 self.trUtf8("Configuration Page Error"), |
562 self.trUtf8("""<p>The configuration page <b>{0}</b>""" |
563 self.trUtf8("""<p>The configuration page <b>{0}</b>""" |
563 """ could not be loaded.</p>""").format(name)) |
564 """ could not be loaded.</p>""").format(name)) |
564 return None |
565 return None |
565 |
566 |