allow inline comments with '#' in box cfg files

This commit is contained in:
zolliker committed 2025-07-08 08:15:52 +02:00
1 parent 16c58c7bb1
commit df19b1c8a0
3 files changed
+4 -4

No files matched your search

+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():