#NEWLINE# def _explode_path( path ) : #NEWLINE# #INDENT# dirs = [ ] #NEWLINE# comps = [ ] #NEWLINE# path = abspth ( path ) #NEWLINE# dirs . append ( path ) #NEWLINE# ( head , tail ) = os . path . split ( path ) #NEWLINE# while tail : #NEWLINE# #INDENT# dirs . append ( head ) #NEWLINE# comps . append ( tail ) #NEWLINE# path = head #NEWLINE# ( head , tail ) = os . path . split ( path ) #NEWLINE# #UNINDENT# dirs . sort ( ) #NEWLINE# comps . reverse ( ) #NEWLINE# return ( dirs , comps )