Skip to content

Commit

Permalink
fix reload bug with comment on Setting.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel D committed Apr 22, 2019
1 parent ab92530 commit 40a2fe6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Config.py
Expand Up @@ -34,7 +34,7 @@ def locate_gamelog(path=os.getcwd()):

class config(object):
def __init__(self):
self.parser = ConfigParser.ConfigParser(allow_no_value=True)
self.parser = ConfigParser.ConfigParser()
self.filepath = "Settings.cfg"
self.filters_path = "filters.txt"
self.wordcolor_path = "wordcolor.txt"
Expand Down Expand Up @@ -72,9 +72,6 @@ def load(self):
self.parser.set("Settings", 'trim_announcements_0', str(self.trim_announcements[0]))
self.parser.set("Settings", 'trim_announcements_1', str(self.trim_announcements[1]))
self.parser.add_section("Colors")
self.parser.set("Colors", "; Input Format :")
self.parser.set("Colors", "; tag_name = #fg_color #bg_color")
self.parser.set("Colors", "; (if no bg, get default_background color)")
self.parser.set("Colors", 'default_background', str(self.default_bg))
for color in self.word_color_dict:
self.parser.set("Colors",color,self.word_color_dict[color][0])
Expand Down

0 comments on commit 40a2fe6

Please sign in to comment.