kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/removed_working_directory_error' into 'master'
Tools bugfix: Removed working directory when using idf.py Closes IDFGH-10210 See merge request espressif/esp-idf!24065pull/11652/head
commit
99772e65a1
|
@ -699,6 +699,12 @@ def main() -> None:
|
|||
# Check the environment only when idf.py is invoked regularly from command line.
|
||||
checks_output = None if SHELL_COMPLETE_RUN else check_environment()
|
||||
|
||||
# Check existance of the current working directory to prevent exceptions from click cli.
|
||||
try:
|
||||
os.getcwd()
|
||||
except FileNotFoundError as e:
|
||||
raise FatalError(f'ERROR: {e}. Working directory cannot be established. Check it\'s existence.')
|
||||
|
||||
try:
|
||||
cli = init_cli(verbose_output=checks_output)
|
||||
except ImportError:
|
||||
|
|
Ładowanie…
Reference in New Issue