Sometimes you will have to work with environment variables. Below are some quick examples to get you started.
Set
import os os.environ['NAME'] = myValue
Get
import os os.getenv("NAME")
Get with Default
import os os.getenv("NAME", "defaultValue")
A place for tutorials on programming and other such works.
Sometimes you will have to work with environment variables. Below are some quick examples to get you started.
Set
import os os.environ['NAME'] = myValue
Get
import os os.getenv("NAME")
Get with Default
import os os.getenv("NAME", "defaultValue")