Message160324
| 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:31 | jcea | set | recipients:
+ jcea, bfroehle |
| 2012年05月10日 02:48:31 | jcea | set | messageid: <1336618111.75.0.644052096655.issue14768@psf.upfronthosting.co.za> |
| 2012年05月10日 02:48:31 | jcea | link | issue14768 messages |
| 2012年05月10日 02:48:31 | jcea | create |
|