From e29359f6555da1247fc9975097838560499daa85 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Sat, 4 Feb 2023 20:21:36 +0100 Subject: [PATCH] Fix reading config file --- jlmkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index ee80d21..9b744e4 100644 --- a/jlmkr.py +++ b/jlmkr.py @@ -70,7 +70,7 @@ def start_jail(jail_name): config = configparser.ConfigParser() try: # Workaround to read config file without section headers - config.read_string('[DEFAULT]'+Path(jail_config_path).read_text()) + config.read_string('[DEFAULT]\n'+Path(jail_config_path).read_text()) except FileNotFoundError: fail(f'Unable to find: {jail_config_path}.')