def fullsplit(path, result=None):
if result is None:<EOL><INDENT>result = []<EOL><DEDENT>head, tail = os.path.split(path)<EOL>if head == '<STR_LIT>':<EOL><INDENT>return [tail] + result<EOL><DEDENT>if head == path:<EOL><INDENT>return result<EOL><DEDENT>return fullsplit(head, [tail] + result)<EOL>
Split a pathname into components (the opposite of os.path.join) in a
platform-neutral way.