411 Private method to import a configuration page module. |
411 Private method to import a configuration page module. |
412 |
412 |
413 @param name name of the configuration page module (string) |
413 @param name name of the configuration page module (string) |
414 @return reference to the configuration page module |
414 @return reference to the configuration page module |
415 """ |
415 """ |
416 modName = "Preferences.ConfigurationPages.%s" % name |
416 modName = "Preferences.ConfigurationPages.{0}".format(name) |
417 try: |
417 try: |
418 mod = __import__(modName) |
418 mod = __import__(modName) |
419 components = modName.split('.') |
419 components = modName.split('.') |
420 for comp in components[1:]: |
420 for comp in components[1:]: |
421 mod = getattr(mod, comp) |
421 mod = getattr(mod, comp) |