En Fri, 30 Jan 2009 14:30:53 -0200, eliben escribió:
I'm having a problem with 2.6's new os.path.relpath function.
This is correct:
relpath(r'd:\abc\jho', r'd:\abc')
=> 'jho'
But this isn't:
relpath(r'd:\jho', r'd:\\')
=> '..\jho'
Looks like a real bug to me -- please submit it to http://b
eliben wrote:
I'm having a problem with 2.6's new os.path.relpath function.
> ... But this isn't [correct]:
relpath(r'd:\jho', r'd:\\')
=> '..\jho'
Neither is this:
relpath(r'd:\jho', r'd:')
=> '..\..\..\jho'
What am I missing?
There is no way to write a raw string for text ending in a singl
I'm having a problem with 2.6's new os.path.relpath function.
This is correct:
relpath(r'd:\abc\jho', r'd:\abc')
=> 'jho'
But this isn't:
relpath(r'd:\jho', r'd:\\')
=> '..\jho'
Neither is this:
relpath(r'd:\jho', r'd:')
=> '..\..\..\jho'
What am I missing?
--
http://mail.python.org/mailman