[utils] Disable strict mode for registry parsing

Fixes #407
This commit is contained in:
derrod 2022-06-01 09:49:12 +02:00
parent 40748a91ba
commit 06b18fe94a

View file

@ -6,7 +6,7 @@ logger = logging.getLogger('WineHelpers')
def read_registry(wine_pfx):
reg = configparser.ConfigParser(comment_prefixes=(';', '#', '/', 'WINE'), allow_no_value=True)
reg = configparser.ConfigParser(comment_prefixes=(';', '#', '/', 'WINE'), allow_no_value=True, strict=False)
reg.optionxform = str
reg.read(os.path.join(wine_pfx, 'user.reg'))
return reg