def _get_env():
 env = dict(os.environ)
 env['PYTHONPATH'] = os.pathsep.join(sys.path)
 return env

def _get_env ( ) : env = dict ( os . environ ) env [ 'PYTHONPATH' ] = os . pathsep . join ( sys . path ) return env
extracts the environment pythonpath and appends the current sys .