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