Serhiy Storchaka added the comment:

> Should I use os.path.realpath?

I don't see other way.

But there is other issue. Following code works now, but will fail with the 
patch:

import os, tempfile
os.mkdir('parent')
os.chdir('parent')
t = tempfile.TemporaryDirectory(dir=".")
os.rename('../parent', '../parent2')
t.cleanup()

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20267>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to