append to config file, not rewrite
This commit is contained in:
parent
aed1fccc6f
commit
3339b2773b
1 changed files with 5 additions and 2 deletions
|
@ -206,8 +206,11 @@ def writeConfig(installdir, formdir):
|
|||
write one line per info, no line if info is None
|
||||
"""
|
||||
try:
|
||||
with open(CONFIGFILE, "w+") as configfile:
|
||||
# w = write
|
||||
with open(CONFIGFILE, "a+") as configfile:
|
||||
# a = append
|
||||
# if you use only the last entries in the configfile this is OK
|
||||
# and you do not overwrite what might be interesting to
|
||||
# the user
|
||||
# + = create if not exist
|
||||
if installdir is not None:
|
||||
print(CONFIG_INSTALLDIR + CONFIG_SEPARATOR +
|
||||
|
|
Loading…
Reference in a new issue