From 4b03e2443922ceaaf8cc5a0ab51ebc4f86fcb2de Mon Sep 17 00:00:00 2001 From: Calin Crisan <ccrisan@gmail.com> Date: Thu, 11 Jun 2015 14:19:57 +0300 Subject: [PATCH] motion config comments fix --- src/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/config.py b/src/config.py index 9cf4a9b..29340d8 100644 --- a/src/config.py +++ b/src/config.py @@ -1368,12 +1368,10 @@ def _conf_to_dict(lines, list_names=[], no_convert=[]): if match: name, value = match.groups()[:2] - elif line.startswith('#'): # comment line + elif line.startswith('#') or line.startswith(';'): # comment line continue else: - line = line.split('#')[0] # everything up to the first # - parts = line.split(None, 1) if len(parts) == 1: # empty value parts.append('') -- 2.39.5