#NEWLINE# def compile_file( self , source_path ) : #NEWLINE# #INDENT# full_source_path = self . get_full_source_path ( source_path ) #NEWLINE# full_output_path = self . get_full_output_path ( source_path ) #NEWLINE# args = [ self . executable ] #NEWLINE# if self . is_sourcemap_enabled : #NEWLINE# #INDENT# args . append ( '-m' ) #NEWLINE# #UNINDENT# args . extend ( [ full_source_path , '-o' , os . path . dirname ( full_output_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_path ) #NEWLINE# #UNINDENT# cwd = os . path . normpath ( os . path . join ( full_source_path , * ( [ '..' ] * len ( source_path . split ( '/' ) ) ) ) ) #NEWLINE# ( out , errors ) = utils . run_command ( args , cwd = cwd ) #NEWLINE# if errors : #NEWLINE# #INDENT# raise exceptions . StaticCompilationError ( errors ) #NEWLINE# #UNINDENT# utils . convert_urls ( full_output_path , source_path ) #NEWLINE# 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 )