On Jun 10, 6:51 pm, TheSaint <[EMAIL PROTECTED]> wrote:
> On 00:11, mercoledì 11 giugno 2008 Tim Golden wrote:
>
> > "%USERPROFILE%/dir/file".
>
> os.environ('USERPROFILE') should return an info regarding that environment
> variable.
> I guess that, not yet tried.
> --
> Mailsweeper Home :http://it.geocities.com/call_me_not_now/index.html

I found:

from os import environ
r'%(HOMEPATH)s\My Documents\My Pictures\pycon.bmp'% environ

But 'os.join' is supposedly more correct.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to