Cleanups and README update.
This commit is contained in:
parent
eda404ef74
commit
7d5e372410
5 changed files with 24 additions and 20 deletions
|
|
@ -84,9 +84,9 @@ class Configuration:
|
|||
else:
|
||||
return None
|
||||
|
||||
# this function can be called by notifications, plugins and types to set a default value if not
|
||||
# this function can be called by notifications, plugins etc. to set their default values if not
|
||||
# configured. since all objects have access to the configuration this should not be done from
|
||||
# any other place because it can break monipy.
|
||||
# any other place because it can break linspector.
|
||||
# maybe it can be used for dynamic runtime configuration later but need to think about it.
|
||||
def set_option(self, section, option, value):
|
||||
if not self.__configuration.has_option(section, option):
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ logger = getLogger('linspector')
|
|||
class Environment:
|
||||
"""
|
||||
Object for storing environment variables at runtime. These variables must not affect the
|
||||
stability of monipy.
|
||||
stability or runtime of Linspector.
|
||||
"""
|
||||
def __init__(self, configuration):
|
||||
self.__configuration = configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue