#NEWLINE# def get_image( name ) : #NEWLINE# #INDENT# 'Get correct image by name' #NEWLINE# root = os . path . join ( settings . PROJECT_ROOT , 'nodes' , 'images' ) #NEWLINE# if ( root in os . listdir ( root ) ) : #NEWLINE# #INDENT# return name #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 'raw'