Jesús Cea Avión <j...@jcea.es> added the comment:

I though that this situation would be happen for ANY env with $HOME ending in 
"/", but it is not the case:

"""
jcea@ubuntu:~$ echo $HOME
/home/jcea
jcea@ubuntu:~$ python
Python 2.7.3 (default, Apr 12 2012, 13:11:53) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.expanduser("~/a")
'/home/jcea/a'


jcea@ubuntu:/home/jcea$ export HOME=/home/jcea/
jcea@ubuntu:/home/jcea$ echo $HOME
/home/jcea/
jcea@ubuntu:/home/jcea$ python
Python 2.7.3 (default, Apr 12 2012, 13:11:53) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.expanduser("~/a")
'/home/jcea/a'
"""

Bradley, would you mind to write a patch & test?

----------
nosy: +jcea
versions: +Python 3.3

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

Reply via email to