[Pythonmac-SIG] open() does'nt work with py2app
Ronald Oussoren
ronaldoussoren at mac.com
Tue Jul 12 16:13:56 CEST 2005
On 12-jul-2005, at 16:03, Kevin Dangoor wrote:
>
> import user
Don't import user just to get at user.home! The user module looks for
a ~/.pythonrc.py and executes that. Setting user.home is just a side-
effect of its (mostly unwanted) functionality.
Use os.path.expanduser('~') to get the home directory of the current
user.
Ronald
More information about the Pythonmac-SIG
mailing list