#NEWLINE# def _find_project( self , path ) : #NEWLINE# #INDENT# path = os . path . realpath ( path ) #NEWLINE# if os . path . isfile ( path ) : #NEWLINE# #INDENT# path = os . path . split ( path ) [ 0 ] #NEWLINE# #UNINDENT# if self . _configs . get ( path . lower ( ) ) : #NEWLINE# #INDENT# return self . _configs . get ( path . lower ( ) ) #NEWLINE# #UNINDENT# if self . _configs . get ( ( '%s/' % path . lower ( ) ) ) : #NEWLINE# #INDENT# return self . _configs . get ( ( '%s/' % path . lower ( ) ) ) #NEWLINE# #UNINDENT# if self . _configs . get ( ( '%s\\' % path . lower ( ) ) ) : #NEWLINE# #INDENT# return self . _configs . get ( ( '%s\\' % path . lower ( ) ) ) #NEWLINE# #UNINDENT# split_path = os . path . split ( split_path ) #NEWLINE# if ( split_path [ 1 ] == '' ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return self . _find_project ( split_path [ 0 ] )