MCPcopy Create free account
hub / github.com/SLiCAP/SLiCAP_python / _update_project_config

Function _update_project_config

SLiCAP/SLiCAPconfigure.py:412–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410 config_dict.write(f)
411
412def _update_project_config():
413 config_dict = _read_project_config()
414 config_dict['project']['title'] = project_title
415 config_dict['project']['author'] = author
416 config_dict['project']['last_updated'] = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
417 config_dict["html"]["current_page"] = html_index
418 config_dict["html"]["current_index"] = html_page
419 config_dict["html"]["prefix"] = html_prefix
420 config_dict["html"]["pages"] = (',').join(html_pages)
421 config_dict["labels"] = html_labels
422 _write_project_config(config_dict)
423
424def _update_ini_files():
425 generate = False # Will be set to True is main config is corrupted

Callers

nothing calls this directly

Calls 2

_read_project_configFunction · 0.85
_write_project_configFunction · 0.85

Tested by

no test coverage detected