This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jcea
Recipients bfroehle, jcea
Date 2012-05-10.02:48:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336618111.75.0.644052096655.issue14768@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2012-05-10 02:48:31jceasetrecipients: + jcea, bfroehle
2012-05-10 02:48:31jceasetmessageid: <1336618111.75.0.644052096655.issue14768@psf.upfronthosting.co.za>
2012-05-10 02:48:31jcealinkissue14768 messages
2012-05-10 02:48:31jceacreate