#NEWLINE# def sass_receiver( sender , **kwargs ) : #NEWLINE# #INDENT# sass_cmd = msettings . get ( 'SASS_COMMAND' , 'sass' ) #NEWLINE# root = msettings [ 'STATIC_ROOT' ] #NEWLINE# for filename in listdir_recursive ( root ) : #NEWLINE# #INDENT# if ( filename . endswith ( '.sass' ) or filename . endswith ( '.scss' ) ) : #NEWLINE# #INDENT# sass_path = os . path . join ( root , filename ) #NEWLINE# css_path = ( sass_path [ : ( - 4 ) ] + 'css' ) #NEWLINE# cmd = ( '%s %s %s' % ( sass_cmd , sass_path , css_path ) ) #NEWLINE# subprocess . call ( cmd . split ( ' ' ) )