Fix reading config file
This commit is contained in:
parent
cdee8068f7
commit
e29359f655
2
jlmkr.py
2
jlmkr.py
|
@ -70,7 +70,7 @@ def start_jail(jail_name):
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
try:
|
try:
|
||||||
# Workaround to read config file without section headers
|
# 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:
|
except FileNotFoundError:
|
||||||
fail(f'Unable to find: {jail_config_path}.')
|
fail(f'Unable to find: {jail_config_path}.')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue