How to find the real user home directory using python?
- by nsharish
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.