> > 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...
The tilde is just UNIX shorthand for the environment variable,
"home." You can access environment variables in python like this:
os.getenv("HOME")
Scott
On Mar 18, 2006, at 4:22 PM, Stewart Midwinter wrote:
> I have a question on use of the tilde symbol (~) to access the current
>
On 20-mrt-2006, at 4:13, Zachary Pincus wrote:
> Hello folks,
>
> Here is a patch to make Python on OS X 10.3 and above use dlopen()
> (via dynload_shlib.c) to load extension modules, and to make the dl
> module avaliable. It ought to be incorporated into the SVN for python
> 2.5, if not for furt
Hi all,
I just noticed on c.l.p that someone has whipped up a set of icons based
on the new one on the website.
I know Kevin O. is working to come up with something better, but I
figured it wouldn't hurt to take a look at these:
"""
I've taken the opportunity to knock up some icons using it,