small question

Jarek Zgoda jzgoda at
Sun Mar 16 12:18:31 CET 2003

Ali Dada <afd00 at> pisze:
> 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 
> but what is a better and more general way?

Look at other os.* routines - i.e. os.path.expanduser(). You can also
read $HOME env. variable.

Jarek Zgoda                        JID:zgoda at

More information about the Python-list mailing list