1115 Private method to import a configuration page module. |
1115 Private method to import a configuration page module. |
1116 |
1116 |
1117 @param name name of the configuration page module (string) |
1117 @param name name of the configuration page module (string) |
1118 @return reference to the configuration page module |
1118 @return reference to the configuration page module |
1119 """ |
1119 """ |
1120 modName = "Preferences.ConfigurationPages.{0}".format(name) |
1120 modName = "eric7.Preferences.ConfigurationPages.{0}".format(name) |
1121 try: |
1121 try: |
1122 mod = __import__(modName) |
1122 mod = __import__(modName) |
1123 components = modName.split(".") |
1123 components = modName.split(".") |
1124 for comp in components[1:]: |
1124 for comp in components[1:]: |
1125 mod = getattr(mod, comp) |
1125 mod = getattr(mod, comp) |