the following general-purpose variables are definedenviron mapping object representing the current environment variables changes to the mapping are reflected in the current environment if the putenv(function is also availablethen changes are also reflected in subprocesses linesep the string used to separate lines on the current platform may be single character such as '\nfor posix or multiple characters such as '\ \nfor windows name the name of the os-dependent module imported'posix''nt''dos''mac''ce''java''os 'or 'riscospath the os-dependent standard module for pathname operations this module can also be loaded using import os path process environment the following functions are used to access and modify various parameters related to the environment in which process runs processgroupprocess groupand session ids are integers unless otherwise noted chdir(pathchanges the current working directory to path chroot(pathchanges the root directory of the current process (unixctermid(returns string with the filename of the control terminal for the process (unixfchdir(fdchanges the current working directory fd is file descriptor to an opened directory (unixgetcwd(returns string with the current working directory getcwdu(returns unicode string with the current working directory getegid(returns the effective group id (unixgeteuid(returns the effective user id (unixf lib fl ff