View source on GitHub |
Replace os.environ by a RequestLocalEnviron instance.
google.appengine.runtime.request_environment.PatchOsEnviron(
os_module=os
)
This is called from init.py when it modifies the execution environment (in the wider sense of the word).
Args | |
---|---|
os_module
|
An optional module to patch. Defaults to os. |