Request for tips on my first python script.

Maric Michaud maric at aristote.info
Fri Sep 8 08:00:55 EDT 2006


Le vendredi 08 septembre 2006 13:56, Maric Michaud a écrit :
> maric at redflag2 jeu sep 07 09:17:51:~/test$ export HOME=/etc
> maric at redflag2 ven sep 08 13:53:17:/home/maric/test$ cd ~
> maric at redflag2 ven sep 08 13:53:22:~$ pwd
> /etc
> maric at redflag2 ven sep 08 13:55:46:~$ python -c 'import os
>
> > print os.path.expanduser("~")
> > '
>
> /etc

Of course it's not the same as :

maric at redflag2 ven sep 08 13:58:25:~$ export HOME=/etc
maric at redflag2 ven sep 08 14:00:11:~$ python -c 'import os
print os.path.expanduser("~maric")
'
/home/maric




-- 
_____________

Maric Michaud
_____________

Aristote - www.aristote.info
3 place des tapis
69004 Lyon
Tel: +33 426 880 097



More information about the Python-list mailing list