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

+better comment detection in local.conf

parent cad94273
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment