HOME Directory in posix and nt

Jörg Maier joerg.maier at rz.uni-mannheim.de
Sun Aug 3 07:49:39 EDT 2003


Hey,

ist there a possibility to get the users homedirectory as environment
variables %HOMEPATH% or $HOME. there must be a way to see system variables
other than 
stdout = os.popen('{ echo $HOME } 2>&1 ', 'r') on posix and
stdout = os.popen('echo %HOMEPATH% 2>&1', 'r')
with
home = stdout.readline()
???
-- 
Hi
I am a signature virus. 
Please copy me to your .signature file to help me spread.




More information about the Python-list mailing list