Load the default config file from the default ipython_dir. This is useful for embedded shells.
(ipython_dir=None)
| 360 | sys.exit(1) |
| 361 | |
| 362 | def load_default_config(ipython_dir=None): |
| 363 | """Load the default config file from the default ipython_dir. |
| 364 | |
| 365 | This is useful for embedded shells. |
| 366 | """ |
| 367 | if ipython_dir is None: |
| 368 | ipython_dir = get_ipython_dir() |
| 369 | |
| 370 | profile_dir = os.path.join(ipython_dir, 'profile_default') |
| 371 | app = TerminalIPythonApp() |
| 372 | app.config_file_paths.append(profile_dir) |
| 373 | app.load_config_file() |
| 374 | return app.config |
| 375 | |
| 376 | launch_new_instance = TerminalIPythonApp.launch_instance |
| 377 |
no test coverage detected