#NEWLINE# def load_scripts( self ) : #NEWLINE# #INDENT# project_names = set ( self . projects . keys ( ) ) #NEWLINE# for path in self . files : #NEWLINE# #INDENT# for filename in glob . glob ( path ) : #NEWLINE# #INDENT# name = os . path . splitext ( os . path . basename ( filename ) ) [ 0 ] #NEWLINE# if ( name in project_names ) : #NEWLINE# #INDENT# project_names . remove ( name ) #NEWLINE# #UNINDENT# updatetime = os . path . getmtime ( filename ) #NEWLINE# if ( ( name not in self . projects ) or ( updatetime > self . projects [ name ] [ 'updatetime' ] ) ) : #NEWLINE# #INDENT# project = self . _build_project ( filename ) #NEWLINE# if ( not project ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . projects [ project [ 'name' ] ] = project #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# for name in project_names : #NEWLINE# #INDENT# del project . projects [ name ]