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':