def _split_path(path):
<EOL>path = path[:-<NUM_LIT:1>] if path[-<NUM_LIT:1>] == '<STR_LIT:/>' else path<EOL>split = path_split(path)<EOL>return split<EOL>
A wrapper around the normal split function that ignores any trailing /.

:return: A tuple of the form (dirname, last) where last is the last element
         in the path.