Moduleposix defines the following data item:
environ['HOME'] is thepathname of your home directory, equivalent togetenv("HOME") in C.Modifying this dictionary does not affect the string environmentpassed on byexecv(),popen() orsystem(); if you need to change the environment, passenviron toexecve() or add variable assignments andexport statements to the command string forsystem() orpopen().
Note:Theos module provides an alternateimplementation ofenviron which updates the environment onmodification. Note also that updatingos.environ will renderthis dictionary obsolete. Use of theos module version ofthis is recommended over direct access to theposix module.
Additional contents of this module should only be accessed via theos module; refer to the documentation for that module forfurther information.