From 0e53f60a4516fc28cd22fd1fac21bf0deb34cde2 2023-09-28 12:11:44 From: Maroš Telka Date: 2023-09-28 12:11:44 Subject: [PATCH] Make `ipapp.py` unrunnable as one py file, due to relative import in file --- diff --git a/IPython/terminal/ipapp.py b/IPython/terminal/ipapp.py index 6280bce..eed452c 100755 --- a/IPython/terminal/ipapp.py +++ b/IPython/terminal/ipapp.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # encoding: utf-8 """ The :class:`~traitlets.config.application.Application` object for the command @@ -337,7 +336,3 @@ def load_default_config(ipython_dir=None): return app.config launch_new_instance = TerminalIPythonApp.launch_instance - - -if __name__ == '__main__': - launch_new_instance()