From 6310e93b8b49b10a733370002c4ad1ee01af5dbe Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Wed, 9 May 2018 16:58:37 -0800 Subject: [PATCH] Try utf-16 if utf-8 fails --- exts/imports/process_files.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exts/imports/process_files.py b/exts/imports/process_files.py index 908c808..38e1585 100644 --- a/exts/imports/process_files.py +++ b/exts/imports/process_files.py @@ -88,7 +88,8 @@ def process_files(z) -> (ConfigParser, ConfigParser, list): mods = list() path = 'submissions_temp/tmp/' z.extractall(path=path) - for filename in os.listdir(path): + files = os.listdir(path) + for filename in files: if filename.endswith('.ini'): # ignore any files that don't end with .ini if filename.lower() == 'game.ini':