From: Urban Wallasch Date: Wed, 16 Jun 2021 03:45:35 +0000 (+0200) Subject: * For now leave the name of the config file in cfg[] when saving. X-Git-Tag: v0.1.0~131 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=180635a2ea6bfd6beb6f82147fff050a87330daa;p=jiten-pai.git * For now leave the name of the config file in cfg[] when saving. --- 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'))