Merge pull request #104 from Corwin74/fix-ini

Fix error when running initialise.py on localized Windows
This commit is contained in:
Nicolas P. Rougier 2020-03-06 13:17:29 +01:00 committed by GitHub
commit 4e307ceca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ def ktx_to_dict(input_file, keystarter='<'):
""" parsing keyed text to a python dictionary. """
answer = dict()
with open(input_file, 'r+') as f:
with open(input_file, 'r+', encoding='utf-8') as f:
lines = f.readlines()
k, val = '', ''