Commit 1b46274c authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

+better comment detection in local.conf

parent cad94273
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -80,7 +80,9 @@ def read_local_conf(conf_file,pattern):
        with open(conf_file,"r") as f:
            lines = f.readlines()
            for line in lines:
                if line[0]!="#":
                line = line.strip()
                if len(line)!=0:
                  if line.strip()[0]!="#":
                    test = line.find(pattern)
                    if test!=-1:
                        pars = line.split("=")[1].strip().strip("\"").split(":")
@@ -93,6 +95,8 @@ def read_local_conf_dev(conf_file,pattern):
        with open(conf_file,"r") as f:
            lines = f.readlines()
            for line in lines:
              line = line.strip()
              if len(line)!=0:
                if line[0]!="#":
                  test = line.find(pattern)
                  if test!=-1: