Message198210
| Author |
weizhao |
| Recipients |
weizhao |
| Date |
2013年09月21日.15:39:02 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1379777943.19.0.474410652516.issue19062@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
#file
idlelib/configHandler.py
#code
userDir = os.path.expanduser('~')
#os
windows 7 sp1
it doesnt get final userdir path. it doesnt work correctly for userdir .
this cause python3.3 IDLE GUI can not be opened on my pc .
as per the docment says as follows:
help(os.path.expanduser)
Help on function expanduser in module ntpath:
expanduser(path)
Expand ~ and ~user constructs.
If user or $HOME is unknown, do nothing.
help(os.path.expandvars)
Help on function expandvars in module ntpath:
expandvars(path)
Expand shell variables of the forms $var, ${var} and %var%.
Unknown variables are left unchanged.
the right code may be:
userDir = os.path.expandvars(os.path.expanduser('~')) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年09月21日 15:39:03 | weizhao | set | recipients:
+ weizhao |
| 2013年09月21日 15:39:03 | weizhao | set | messageid: <1379777943.19.0.474410652516.issue19062@psf.upfronthosting.co.za> |
| 2013年09月21日 15:39:03 | weizhao | link | issue19062 messages |
| 2013年09月21日 15:39:02 | weizhao | create |
|