419 components = modName.split('.') |
420 components = modName.split('.') |
420 for comp in components[1:]: |
421 for comp in components[1:]: |
421 mod = getattr(mod, comp) |
422 mod = getattr(mod, comp) |
422 return mod |
423 return mod |
423 except ImportError: |
424 except ImportError: |
424 QMessageBox.critical(None, |
425 E5MessageBox.critical(self, |
425 self.trUtf8("Configuration Page Error"), |
426 self.trUtf8("Configuration Page Error"), |
426 self.trUtf8("""<p>The configuration page <b>{0}</b>""" |
427 self.trUtf8("""<p>The configuration page <b>{0}</b>""" |
427 """ could not be loaded.</p>""").format(name)) |
428 """ could not be loaded.</p>""").format(name)) |
428 return None |
429 return None |
429 |
430 |