#NEWLINE# def fullsplit( path , result = None ) : #NEWLINE# #INDENT# '\n    Split a pathname into components (the opposite of os.path.join) in a\n    platform-neutral way.\n    ' #NEWLINE# if ( result is None ) : #NEWLINE# #INDENT# result = [ ] #NEWLINE# #UNINDENT# ( head , tail ) = os . path . split ( path ) #NEWLINE# if ( head == '' ) : #NEWLINE# #INDENT# return ( [ tail ] + result ) #NEWLINE# #UNINDENT# if ( head == path ) : #NEWLINE# #INDENT# return result #NEWLINE# #UNINDENT# return fullsplit ( path , ( [ tail ] + result ) )