Steven D'Aprano <[EMAIL PROTECTED]> wrote: >>>> import os >>>> os.path.splitdrive('C://My Documents/My File.txt') > ('C:\\\\', 'My Documents\\My File.txt') > > I had to fake the above output because I'm not running Windows, so > excuse me if I got it wrong.
Not that it matters, but: >>> os.path.splitdrive('C://My Documents/My File.txt') ('C:', '//My Documents/My File.txt') -- http://mail.python.org/mailman/listinfo/python-list