mirror of https://github.com/flaggo/pydu.git
add doc for environ.environ
This commit is contained in:
parent
9249a09196
commit
e9cfa5101c
|
@ -0,0 +1,17 @@
|
|||
Environ
|
||||
-------
|
||||
|
||||
|
||||
.. py:function:: pydu.environ.environ(**kwargs)
|
||||
|
||||
Context manager for updating one or more environment variables.
|
||||
|
||||
Preserves the previous environment variable (if available) and
|
||||
recovers when exiting the context manager.
|
||||
|
||||
>>> from pydu.environ import environ
|
||||
>>> with environ(a='a'):
|
||||
... print(os.environ['a'])
|
||||
...
|
||||
a
|
||||
|
|
@ -26,6 +26,7 @@ Content
|
|||
console
|
||||
convert
|
||||
dict
|
||||
environ
|
||||
exception
|
||||
inspect
|
||||
list
|
||||
|
|
Loading…
Reference in New Issue