import an app class
(self, app_path)
| 245 | classes = [ProfileDir] |
| 246 | |
| 247 | def _import_app(self, app_path): |
| 248 | """import an app class""" |
| 249 | app = None |
| 250 | name = app_path.rsplit('.', 1)[-1] |
| 251 | try: |
| 252 | app = import_item(app_path) |
| 253 | except ImportError: |
| 254 | self.log.info("Couldn't import %s, config file will be excluded", name) |
| 255 | except Exception: |
| 256 | self.log.warning('Unexpected error importing %s', name, exc_info=True) |
| 257 | return app |
| 258 | |
| 259 | def init_config_files(self): |
| 260 | super(ProfileCreate, self).init_config_files() |
no test coverage detected