small question

Wojtek Walczak gminick at hacker.pl
Sun Mar 16 12:22:16 CET 2003


Dnia Sun, 16 Mar 2003 10:25:14 GMT, Ali Dada napisał(a):
> how can i force a script to execute in the user's home directory?
> if i know that the user is 'foo' i can say 
>>os.chdir('/home/foo')
> but what is a better and more general way?
os.environ["HOME"] ?

-- 
[ Wojtek Walczak - gminick (at) underground.org.pl ]
[        <http://gminick.linuxsecurity.pl/>        ]
[ "...rozmaite zwroty, matowe od patyny dawnosci." ]





More information about the Python-list mailing list