From 1cc04d062c88504c761963a6c1cef8dad01ba896 Mon Sep 17 00:00:00 2001 From: dyarkovoy Date: Tue, 12 Dec 2023 13:01:32 +0200 Subject: [PATCH] fix(tools): Fixed Python path case sensitive error on Windows Closes https://github.com/espressif/esp-idf/issues/12779 Closes https://github.com/espressif/esp-idf/pull/12780 --- tools/idf_py_actions/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_py_actions/tools.py b/tools/idf_py_actions/tools.py index c90da90fa9..246f560abb 100644 --- a/tools/idf_py_actions/tools.py +++ b/tools/idf_py_actions/tools.py @@ -626,7 +626,7 @@ def ensure_build_directory(args: 'PropertyDict', prog_name: str, always_run_cmak try: python = cache['PYTHON'] - if python != sys.executable: + if os.path.normcase(python) != os.path.normcase(sys.executable): raise FatalError( "'{}' is currently active in the environment while the project was configured with '{}'. " "Run '{} fullclean' to start again.".format(sys.executable, python, prog_name))