Cleanups and README update.

This commit is contained in:
Johannes Findeisen 2022-09-26 23:37:40 +02:00
commit 7d5e372410
5 changed files with 24 additions and 20 deletions

View file

@ -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):

View file

@ -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