#NEWLINE# def runtox( tox_ini_file_name ) : #NEWLINE# #INDENT# with open ( tox_ini_file_name , 'r' ) as toxini : #NEWLINE# #INDENT# envs = [ section_re . findall ( line ) [ 0 ] for line in map ( str . strip , toxini . readlines ( ) ) if section_re . match ( line ) ] #NEWLINE# #UNINDENT# cmd = [ 'tox' , '-e' , ',' . join ( envs ) ] #NEWLINE# print ( '' ) #NEWLINE# print ( ( '    Running command: %s' % ' ' . join ( cmd ) ) ) #NEWLINE# print ( '' ) #NEWLINE# subprocess . call ( cmd )