allow inline comments with '#' in box cfg files

This commit is contained in:
2025-07-08 08:15:52 +02:00
parent 16c58c7bb1
commit df19b1c8a0
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ class BoxInfo:
self.cfgfile = cfgfiles[0]
else:
return {}
parser = ConfigParser()
parser = ConfigParser(inline_comment_prefixes=('#',))
parser.read(self.cfgfile)
if section:
if section in parser.sections():