From fc735d7f453895501bb85be9cfcbc579717a797c Mon Sep 17 00:00:00 2001 From: Michael Moran Date: Wed, 25 Sep 2024 09:22:43 +1000 Subject: [PATCH] Update prepare.py different capitalization for different versions of OS --- Telegram/build/prepare/prepare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py index 1c4bcb071cf89f..ea1d4895ec880c 100644 --- a/Telegram/build/prepare/prepare.py +++ b/Telegram/build/prepare/prepare.py @@ -21,7 +21,7 @@ def nativeToolsError(): win = (sys.platform == 'win32') mac = (sys.platform == 'darwin') -if win and not 'Platform' in os.environ: +if win and not any(key.casefold() == 'platform' for key in os.environ): nativeToolsError() win32 = win and (os.environ['Platform'] == 'x86')