From e8cfe6f451731e8786a5de5b1411b4e16c42b0eb 2013-07-01 01:05:12 From: Brian E. Granger Date: 2013-07-01 01:05:12 Subject: [PATCH] Rename nbconvert entry point to the launch_new_instance. --- diff --git a/IPython/nbconvert/nbconvertapp.py b/IPython/nbconvert/nbconvertapp.py index 9325a9e..027f505 100755 --- a/IPython/nbconvert/nbconvertapp.py +++ b/IPython/nbconvert/nbconvertapp.py @@ -200,16 +200,13 @@ class NbConvertApp(Application): print(KEYS_PROMPT_BODY , file=sys.stderr) #----------------------------------------------------------------------------- -#Script main +# Main entry point #----------------------------------------------------------------------------- -def main(): +def launch_new_instance(): """Application entry point""" app = NbConvertApp.instance() app.description = __doc__ app.start(argv=sys.argv) -#Check to see if python is calling this file directly. -if __name__ == '__main__': - main()