It's worth checking out this function to see if it can properly handle the splitting of paths as well:
http://docs.python.org/release/2.6.8/library/os.path.html#os.path.split
Mind the caveat that paths ending in '/' (or '\') will not produce a tail return value.
« Back to merge proposal
It's worth checking out this function to see if it can properly handle the splitting of paths as well:
http:// docs.python. org/release/ 2.6.8/library/ os.path. html#os. path.split
Mind the caveat that paths ending in '/' (or '\') will not produce a tail return value.