From 3339b2773b1587cca68a1bd2280090142c660c56 Mon Sep 17 00:00:00 2001 From: Bela Date: Fri, 2 Nov 2018 16:40:47 +0100 Subject: [PATCH] append to config file, not rewrite --- install.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.py b/install.py index dbaa7bb..60ec402 100755 --- a/install.py +++ b/install.py @@ -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 +