#NEWLINE# @ property #NEWLINE# def icon( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return static_files . _icon #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# static_path = os . path . join ( 'website' , 'addons' , self . short_name , 'static' ) #NEWLINE# static_files = glob . glob ( os . path . join ( static_path , 'comicon.*' ) ) #NEWLINE# image_files = [ os . path . split ( filename ) [ 1 ] for filename in static_files if _is_image ( filename ) ] #NEWLINE# if ( len ( image_files ) == 1 ) : #NEWLINE# #INDENT# self . _icon = image_files [ 0 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _icon = None #NEWLINE# #UNINDENT# return self . _icon