Пример #1
0
def get(element):
    """
    Show a single configuration element.
    """
    if element in CFG.values:
        OUTPUT.configelement(name=element, value=CFG.values[element])
Пример #2
0
def path():
    """
    Display configuration file path
    """
    OUTPUT.configelement(name='Path', value=CFG.config_file)
Пример #3
0
def logpath():
    """
    Output the current configuration log file path
    """
    OUTPUT.configelement(name='Path', value=CFG.get_logpath())
Пример #4
0
def show():
    """
    Show script configuration
    """
    for key, val in CFG.values.items():
        OUTPUT.configelement(name=key, value=val)