mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[lfs] Move optionxform to custom config parser
This commit is contained in:
parent
dd5f77c3d1
commit
ad2912a88e
|
@ -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']:
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue