summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-12-07 23:24:39 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-12-08 00:14:42 +0100
commit166be7d7684b4bd309661603a35710e0ed752680 (patch)
treeb5fcd0a2f412ecec2cd593880967c01ad336c98f /setup.py
parent6f096161ec8415aa585d431ebb85e2738de2108f (diff)
Save existing configuration to .<filename>.old in write_config()
Add a default-True 'save_old' flag to write_config(). If 'save_old' is True and an existing configuration file is being overwritten, a copy of the old configuration file is saved to .<filename>.old (e.g. .config.old) in the same directory. Errors are ignored, as the old configuration would usually just be a nice-to-have, and not essential. The same functionality could be added for minimal configuration files and headers, but it's probably most useful for configuration files.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions