relativepath won't work with mac-style paths, instead of ".." you should probably use os.pardir instead. that's the only thing that jumps out at me... Jeff PS I've often wanted splitall(), I don't recall ever wanting relativepath