2020-02-02 15:33:09 -06:00
|
|
|
"""
|
|
|
|
categories: Modules,os
|
|
|
|
description: ``getenv`` returns actual value instead of cached value
|
|
|
|
cause: The ``environ`` attribute is not implemented
|
|
|
|
workaround: Unknown
|
|
|
|
"""
|
|
|
|
import os
|
2020-03-22 21:26:08 -05:00
|
|
|
|
2020-02-02 15:33:09 -06:00
|
|
|
print(os.getenv("NEW_VARIABLE"))
|
|
|
|
os.putenv("NEW_VARIABLE", "VALUE")
|
|
|
|
print(os.getenv("NEW_VARIABLE"))
|