#NEWLINE# def __init_app_info( self ) : #NEWLINE# #INDENT# self . app_version = '' #NEWLINE# self . app_hash = '' #NEWLINE# for ( root , dirs , files ) in os . walk ( os . path . join ( os . path . realpath ( options . log_root ) , 'dist' ) ) : #NEWLINE# #INDENT# for f in files : #NEWLINE# #INDENT# if ( f [ ( - 3 ) : ] != 'egg' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# self . app_version = ( '%s; %s' % ( f [ : ( - 4 ) ] , options . app_version ) ) #NEWLINE# app_egg = ( '%s/%s' % ( root , f ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( not self . app_version ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# with open ( app_egg , 'r' ) as f : #NEWLINE# #INDENT# self . app_hash = md5 ( f . read ( ) ) . hexdigest ( )