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
This commit is contained in:
dyarkovoy 2023-12-12 13:01:32 +02:00 committed by BOT
parent 936cab8e1c
commit 1cc04d062c

View File

@ -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))