google.appengine.runtime.request_environment.PatchOsEnviron

Replace os.environ by a RequestLocalEnviron instance.

This is called from init.py when it modifies the execution environment (in the wider sense of the word).

os_module An optional module to patch. Defaults to os.