#NEWLINE# def get_variable( self , variable_name ) : #NEWLINE# #INDENT# p = subprocess . Popen ( [ self . pkgbin , ( '--variable=%s' % variable_name ) , self . name ] , stdout = subprocess . PIPE , stderr = subprocess . PIPE ) #NEWLINE# out = p . communicate ( ) [ 0 ] #NEWLINE# if ( p . returncode != 0 ) : #NEWLINE# #INDENT# if self . required : #NEWLINE# #INDENT# raise DependencyException ( ( '%s dependency %s not found.' % ( self . type_string , self . name ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# variable = out . decode ( ) . strip ( ) #NEWLINE# #UNINDENT# mlog . debug ( ( 'return of subprocess : %s' % variable ) ) #NEWLINE# return variable