Home | History | Annotate | Download | only in Lib

Lines Matching defs:split

21 __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
77 # Split a path in head (everything up to the last '/') and tail (the
82 def split(p):
83 """Split a pathname. Returns tuple "(head, tail)" where "tail" is
92 # Split a path in root and extension.
101 # Split a pathname into a drive specification and the rest of the
105 """Split a pathname into drive and path. On Posix, drive is always
110 # Return the tail (basename) part of a path, same as split(path)[1].
118 # Return the head (dirname) part of a path, same as split(path)[0].
341 comps = path.split('/')
393 path, name = split(path)
430 start_list = [x for x in abspath(start).split(sep) if x]
431 path_list = [x for x in abspath(path).split(sep) if x]