#NEWLINE# def run( self ) : #NEWLINE# #INDENT# if self . cfg . check_config : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . load ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# msg = '\nError while loading the application:\n' #NEWLINE# print ( msg , file = sys . stderr ) #NEWLINE# traceback . print_exc ( ) #NEWLINE# sys . stderr . flush ( ) #NEWLINE# sys . exit ( 1 ) #NEWLINE# #UNINDENT# sys . exit ( 0 ) #NEWLINE# #UNINDENT# if self . cfg . spew : #NEWLINE# #INDENT# debug . spew ( ) #NEWLINE# #UNINDENT# if self . cfg . daemon : #NEWLINE# #INDENT# util . daemonize ( self . cfg . enable_stdio_inheritance ) #NEWLINE# #UNINDENT# if ( self . cfg . pythonpath and ( self . cfg . pythonpath is not None ) ) : #NEWLINE# #INDENT# paths = self . cfg . pythonpath . split ( ',' ) #NEWLINE# for path in paths : #NEWLINE# #INDENT# pythonpath = os . path . abspath ( paths ) #NEWLINE# if ( pythonpath not in sys . path ) : #NEWLINE# #INDENT# sys . path . insert ( 0 , pythonpath ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# super ( Application , self ) . run ( )