]> www.vanbest.org Git - motioneye-debian/commitdiff
motion config comments fix
authorCalin Crisan <ccrisan@gmail.com>
Thu, 11 Jun 2015 11:19:57 +0000 (14:19 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Thu, 11 Jun 2015 11:19:57 +0000 (14:19 +0300)
src/config.py

index 9cf4a9be8cb8342ca037f41687ae72420d487175..29340d8d7a6222df3c27a9d2e76a7f4d740de40f 100644 (file)
@@ -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('')