fix(tools): Tool curses import check

Verify that curses tool can be successfully imported on unix systems

When detected:
- installing esp-idf -> reinstall python environment
- using idf.py menuconfig -> raise error with hint message

Closes https://github.com/espressif/esp-idf/issues/11643
This commit is contained in:
Marek Fiala
2023-06-28 10:44:27 +02:00
committed by BOT
parent 5995cab9c1
commit 206c46325a
3 changed files with 16 additions and 2 deletions

View File

@@ -703,7 +703,7 @@ def main() -> None:
try:
os.getcwd()
except FileNotFoundError as e:
raise FatalError(f'ERROR: {e}. Working directory cannot be established. Check it\'s existence.')
raise FatalError(f'ERROR: {e}. Working directory cannot be established. Check its existence.')
try:
cli = init_cli(verbose_output=checks_output)