(self, fname, path=None, profile=None)
| 88 | class ProfileAwareConfigLoader(PyFileConfigLoader): |
| 89 | """A Python file config loader that is aware of IPython profiles.""" |
| 90 | def load_subconfig(self, fname, path=None, profile=None): |
| 91 | if profile is not None: |
| 92 | try: |
| 93 | profile_dir = ProfileDir.find_profile_dir_by_name( |
| 94 | get_ipython_dir(), |
| 95 | profile, |
| 96 | ) |
| 97 | except ProfileDirError: |
| 98 | return |
| 99 | path = profile_dir.location |
| 100 | return super(ProfileAwareConfigLoader, self).load_subconfig(fname, path=path) |
| 101 | |
| 102 | class BaseIPythonApplication(Application): |
| 103 |
nothing calls this directly
no test coverage detected