How to find the real user home directory using python?
Posted
by nsharish
on Stack Overflow
See other posts from Stack Overflow
or by nsharish
Published on 2010-04-19T15:59:03Z
Indexed on
2010/04/19
16:03 UTC
Read the original article
Hit count: 186
I see that if we change the HOME(linux) or USERPROFILE(windows) environmental variable and run a python script, it returns the new value as the user home when I tried, os.environ['HOME'] os.exp
Is there any way to find the real user home directory without relying on the environmental variable?. Thanx.
© Stack Overflow or respective owner