[lfs] Move optionxform to custom config parser

This commit is contained in:
derrod 2021-09-03 19:58:06 +02:00
parent dd5f77c3d1
commit ad2912a88e
2 changed files with 1 additions and 1 deletions

View file

@ -33,7 +33,6 @@ class LGDLFS:
self._update_info = None self._update_info = None
# Config with game specific settings (e.g. start parameters, env variables) # Config with game specific settings (e.g. start parameters, env variables)
self.config = LGDConf(comment_prefixes='/', allow_no_value=True) self.config = LGDConf(comment_prefixes='/', allow_no_value=True)
self.config.optionxform = str
# ensure folders exist. # ensure folders exist.
for f in ['', 'manifests', 'metadata', 'tmp']: for f in ['', 'manifests', 'metadata', 'tmp']:

View file

@ -9,6 +9,7 @@ class LGDConf(configparser.ConfigParser):
self.read_only = False self.read_only = False
self.modtime = None self.modtime = None
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.optionxform = str
def read(self, filename): def read(self, filename):
# if config file exists, save modification time # if config file exists, save modification time