def _splitall(path):
 allparts = []
 while True:
  parts = os.path.split(path)
  if (parts[0] == path):
   allparts.insert(0, parts[0])
   break
  elif (parts[1] == path):
   allparts.insert(0, parts[1])
   break
  else:
   path = parts[0]
   allparts.insert(0, parts[1])
 return allparts

def _splitall ( path ) : allparts = [ ] while True : parts = os . path . split ( path ) if ( parts [ 0 ] == path ) : allparts . insert ( 0 , parts [ 0 ] ) break elif ( parts [ 1 ] == path ) : allparts . insert ( 0 , parts [ 1 ] ) break else : path = parts [ 0 ] allparts . insert ( 0 , parts [ 1 ] ) return allparts
split path into all its components .