Beispiel #1
0
def save(log=True):
    if get('execution', 'autosave'):
        files = MERGE_SETTINGS.save()
        if log and files:
            print(
                'Settings automatically saved to', Join.join_file_names(files))
        return files
Beispiel #2
0
def save(log=True):
    if get('execution', 'autosave'):
        files = MERGE_SETTINGS.save()
        if log and files:
            print('Settings automatically saved to',
                  Join.join_file_names(files))
        return files
Beispiel #3
0
def save(_, *values):
  if values:
    SetConfig.set_config(_, *values)
  files = Config.save(False)
  if files:
    LOGGER.info('Configuration saved to %s.', Join.join_file_names(files))
  else:
    LOGGER.error('There are no configuration changes to save.')
Beispiel #4
0
def save(_, *values):
    if values:
        SetSettings.set_settings(_, *values)
    files = Settings.save(False)
    if files:
        LOGGER.info('Settings saved to %s.', Join.join_file_names(files))
    else:
        LOGGER.error('There are no settings changes to save.')
Beispiel #5
0
def save(log=True):
  if get('autosave'):
    files = _MERGE_CONFIG.save()
    if log and files:
      print('Configuration automatically saved to', Join.join_file_names(files))
    return files