From 180635a2ea6bfd6beb6f82147fff050a87330daa Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Wed, 16 Jun 2021 05:45:35 +0200 Subject: [PATCH] * For now leave the name of the config file in cfg[] when saving. --- jiten-pai.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jiten-pai.py b/jiten-pai.py index fed4f39..93c64dd 100755 --- a/jiten-pai.py +++ b/jiten-pai.py @@ -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')) -- 2.30.2