def split_path(path):
def recurse_path(path,retlist):<EOL><INDENT>if len(retlist) > <NUM_LIT:100>:<EOL><INDENT>fullpath = os.path.join(*([ path, ] + retlist))<EOL>print("<STR_LIT>".format(fullpath))<EOL>exit(<NUM_LIT:1>)<EOL><DEDENT>head, tail = os.path.split(path)<EOL>if len(tail) > <NUM_LIT:0>:<EOL><INDENT>retlist.insert(<NUM_LIT:0>,tail)<EOL>recurse_path(head,retlist)<EOL><DEDENT>elif len(head) > <NUM_LIT:1>:<EOL><INDENT>recurse_path(head,retlist)<EOL><DEDENT>else:<EOL><INDENT>return<EOL><DEDENT><DEDENT>retlist = []<EOL>path = os.path.realpath(os.path.normpath(path))<EOL>drive, path = os.path.splitdrive(path)<EOL>if len(drive) > <NUM_LIT:0>: retlist.append(drive)<EOL>recurse_path(path,retlist)<EOL>return retlist<EOL>
Splits the argument into its constituent directories and returns them as
a list.