[Pythonmac-SIG] Question on user's directory ( ~ )
Schollnick, Benjamin
Benjamin.Schollnick at xerox.com
Mon Mar 20 14:32:40 CET 2006
> > import os.path
> > os.path.expanduser('~')
>
> you da man! That works perfectly. I mostly use Python on
> WinXP, so I haven't been familiar with that function up until now.
It's a common problem... I ran into that once when I was moving an
PC based Python application over to MOSX... I knew there was a way
expand it, but forgot that it wasn't automagically performed...
- Ben
More information about the Pythonmac-SIG
mailing list