* For now leave the name of the config file in cfg[] when saving.
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 16 Jun 2021 03:45:35 +0000 (05:45 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 16 Jun 2021 03:45:35 +0000 (05:45 +0200)
jiten-pai.py

index fed4f3980adafd0106cebc205b790bd792fcc083..93c64dd6b2c7e00d90116747f301d00dd14e48f4 100755 (executable)
@@ -86,12 +86,12 @@ cfg = {
 def _save_cfg():
     try:
         with open(cfg['cfgfile'], 'w') as cfgfile:
-            cfg.pop('cfgfile', None)
+            #cfg.pop('cfgfile', None)
             json.dump(cfg, cfgfile, indent=2)
             return
     except Exception as e:
         eprint(cfg['cfgfile'], str(e))
-        cfg.pop('cfgfile', None)
+        #cfg.pop('cfgfile', None)
     cdirs = []
     if os.environ.get('APPDATA'):
         cdirs.append(os.environ.get('APPDATA'))