Load the default config file from the default ipython_dir. This is useful for embedded shells.
(ipython_dir=None)
| 330 | sys.exit(1) |
| 331 | |
| 332 | def load_default_config(ipython_dir=None): |
| 333 | """Load the default config file from the default ipython_dir. |
| 334 | |
| 335 | This is useful for embedded shells. |
| 336 | """ |
| 337 | if ipython_dir is None: |
| 338 | ipython_dir = get_ipython_dir() |
| 339 | |
| 340 | profile_dir = os.path.join(ipython_dir, 'profile_default') |
| 341 | app = TerminalIPythonApp() |
| 342 | app.config_file_paths.append(profile_dir) |
| 343 | app.load_config_file() |
| 344 | return app.config |
| 345 | |
| 346 | launch_new_instance = TerminalIPythonApp.launch_instance |
no test coverage detected
searching dependent graphs…