From bd0b5380822f7c0f891fd5c3b9b4d57610e0a818 Mon Sep 17 00:00:00 2001 From: ajay <84351018+ajayjay0@users.noreply.github.com> Date: Wed, 12 May 2021 11:30:13 -0700 Subject: [PATCH] Enable comments in configuration file --- pyznap/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyznap/utils.py b/pyznap/utils.py index 1182419..116f23a 100644 --- a/pyznap/utils.py +++ b/pyznap/utils.py @@ -76,7 +76,7 @@ def read_config(path): logger.error('Error while loading config: File {:s} does not exist.'.format(path)) return None - parser = ConfigParser() + parser = ConfigParser(inline_comment_prefixes="#") try: parser.read(path) except (MissingSectionHeaderError, DuplicateSectionError, DuplicateOptionError) as e: