From f9370aedb5a08f4d484d545d16a0aeb00cd729df Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 24 Nov 2021 11:55:19 -0500 Subject: [PATCH] [O] Ensure all files are lowercased --- src/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.py b/src/utils.py index 304d199..419429b 100644 --- a/src/utils.py +++ b/src/utils.py @@ -77,7 +77,7 @@ def write(file: str, text: str) -> None: :param text: Text :return: None """ - file = file.replace('\\', '/') + file = file.lower().replace('\\', '/') if '/' in file: path = '/'.join(file.split('/')[:-1]) @@ -94,7 +94,7 @@ def read(file: str) -> str: :param file: File path :return: None """ - with open(file, 'r', encoding='utf-8') as f: + with open(file.lower(), 'r', encoding='utf-8') as f: return f.read()