MCPcopy Create free account
hub / github.com/ipython/ipython / _import_app

Method _import_app

IPython/core/profileapp.py:246–256  ·  view source on GitHub ↗

import an app class

(self, app_path)

Source from the content-addressed store, hash-verified

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()

Callers 1

init_config_filesMethod · 0.95

Calls 2

import_itemFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected