Add comment support in [tasks] section
authorClifford Wolf <clifford@clifford.at>
Thu, 19 Apr 2018 15:28:18 +0000 (17:28 +0200)
committerClifford Wolf <clifford@clifford.at>
Thu, 19 Apr 2018 15:28:18 +0000 (17:28 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
sbysrc/sby.py

index b4500003409017127657f192254418f8221e4c1f..5f33e1d42b02670e0687526c9728d8df7484229e 100644 (file)
@@ -163,6 +163,8 @@ def read_sbyconfig(sbydata, taskname):
             continue
 
         if tasks_section:
+            if line.startswith("#"):
+                continue
             line = line.split()
             if len(line) > 0:
                 tasklist.append(line[0])