bit more doc
This commit is contained in:
parent
2610c48a79
commit
849f81fabd
1
main.py
1
main.py
@ -37,6 +37,7 @@ app = application = bottle.Bottle(catchall=False)
|
||||
|
||||
##################################################### Configuration ############################################$
|
||||
def get_env(var, default=None):
|
||||
"""var is an env var name, default is the value to return if var does not exist. If no default and no value, an exception is raised."""
|
||||
if var in os.environ:
|
||||
return os.environ[var]
|
||||
elif default is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user