#NEWLINE# def run_index( self , log_file ) : #NEWLINE# #INDENT# startupinfo = None #NEWLINE# if ( system ( ) == 'Windows' ) : #NEWLINE# #INDENT# startupinfo = subprocess . STARTUPINFO ( ) #NEWLINE# startupinfo . dwFlags |= subprocess . STARTF_USESHOWWINDOW #NEWLINE# #UNINDENT# p = subprocess . Popen ( index_popen_arg_parser ( 'all' ) , stderr = subprocess . STDOUT , stdout = log_file , startupinfo = startupinfo ) #NEWLINE# rc = p . wait ( ) #NEWLINE# if ( not ( rc == 0 ) ) : #NEWLINE# #INDENT# print ( 'See log file from database directory for details' ) #NEWLINE# raise ValueError ( 'Error in indexing, result code: {0}' . format ( rc ) ) #NEWLINE# #UNINDENT# message = 'Indexing done with rc: {0}' . format ( rc ) #NEWLINE# sublime . status_message ( message ) #NEWLINE# print ( message )