MCPcopy Index your code
hub / github.com/ipython/ipython / _import_app

Method _import_app

IPython/core/profileapp.py:247–257  ·  view source on GitHub ↗

import an app class

(self, app_path)

Source from the content-addressed store, hash-verified

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

Callers 1

init_config_filesMethod · 0.95

Calls 2

import_itemFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected