From: Calin Crisan Date: Thu, 11 Jun 2015 11:19:57 +0000 (+0300) Subject: motion config comments fix X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=4b03e2443922ceaaf8cc5a0ab51ebc4f86fcb2de;p=motioneye-debian motion config comments fix --- 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('')