Commit cad94273 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev
Browse files

ignore comments

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