#NEWLINE# def _run_complement_batch_scripts( self , this_batch = 'run_complement.bat' ) : #NEWLINE# #INDENT# ' tools\\..\run_complement.bat for final complements' #NEWLINE# print ( ( 'now %s in tooldirs\\..' % this_batch ) ) #NEWLINE# for post_complement in list ( set ( [ osp . dirname ( s ) for s in self . _toolsdirs ] ) ) : #NEWLINE# #INDENT# filepath = osp . join ( post_complement , self ) #NEWLINE# if osp . isfile ( filepath ) : #NEWLINE# #INDENT# print ( ( 'launch "%s"  for  "%s"' % ( filepath , self . winpydir ) ) ) #NEWLINE# try : #NEWLINE# #INDENT# retcode = subprocess . call ( ( '"%s"   "%s"' % ( filepath , self . winpydir ) ) , shell = True , stdout = sys . stderr ) #NEWLINE# if ( retcode < 0 ) : #NEWLINE# #INDENT# print ( 'Child was terminated by signal' , ( - retcode ) , file = sys . stderr ) #NEWLINE# #UNINDENT# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# print ( 'Execution failed:' , e , file = sys . stderr ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . _print_done ( )