Finding user's home dir

Marc Christiansen tolot at jupiter.solar-empire.de
Thu Feb 3 05:28:09 EST 2005


Miki Tebeka <miki.tebeka at zoran.com> wrote:
> Hello Nemesis,
> 
>> Hi all, I'm trying to write a multiplatform function that tries to
>> return the actual user home directory.
>> ...
> What's wrong with:
>    from user import home
> which does about what your code does.

Except it also execfile()s $HOME/.pythonrc.py, which might not be wanted. 

Saluton
  Marc



More information about the Python-list mailing list