#NEWLINE# def find_dir( self , lst ) : #NEWLINE# #INDENT# '\n        search a folder in the filesystem\n        create the corresponding mappings source <-> build directories\n        ' #NEWLINE# if isinstance ( lst , str ) : #NEWLINE# #INDENT# lst = [ x for x in split_path ( lst ) if ( x and ( x != '.' ) ) ] #NEWLINE# #UNINDENT# node = self . find_node ( lst ) #NEWLINE# try : #NEWLINE# #INDENT# os . path . isdir ( node . abspath ( ) ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return node