aboutsummaryrefslogtreecommitdiff
path: root/autonyaa.py
diff options
context:
space:
mode:
Diffstat (limited to 'autonyaa.py')
-rwxr-xr-xautonyaa.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/autonyaa.py b/autonyaa.py
index b574114..a84e801 100755
--- a/autonyaa.py
+++ b/autonyaa.py
@@ -105,6 +105,7 @@ def parse_config_section(section):
def parse_config_file():
parsed_sections = []
contents = config_file.read()
+ contents = re.sub(r'^#.*\n', '', contents, 0, re.M)
sections = [x.strip() for x in contents.split("\n\n")]
while "" in sections:
sections.remove("")