#NEWLINE# def compile_file( self , source_path ) : #NEWLINE# #INDENT# args = ( [ self . executable ] + self . get_extra_args ( ) ) #NEWLINE# if self . is_sourcemap_enabled : #NEWLINE# #INDENT# args . append ( '-s' ) #NEWLINE# #UNINDENT# full_output_path = self . get_full_output_path ( source_path ) #NEWLINE# full_output_dirname = os . path . dirname ( full_output_path ) #NEWLINE# if ( not os . path . exists ( full_output_dirname ) ) : #NEWLINE# #INDENT# os . makedirs ( full_output_dirname ) #NEWLINE# #UNINDENT# args . extend ( [ '-o' , full_output_path ] ) #NEWLINE# args . append ( self . get_full_source_path ( source_path ) ) #NEWLINE# ( out , errors ) = utils . run_command ( args ) #NEWLINE# if errors : #NEWLINE# #INDENT# raise exceptions . StaticCompilationError ( errors ) #NEWLINE# #UNINDENT# if self . is_sourcemap_enabled : #NEWLINE# #INDENT# utils . fix_sourcemap ( ( full_output_path + '.map' ) , source_path , full_output_path ) #NEWLINE# #UNINDENT# return self . get_output_path ( source_path )