Merge branch 'bugfix/check_python_deps_diagnostic_v4.2' into 'release/v4.2'
tools: fix diagnostic output in check_python_dependencies.py (backport v4.2) See merge request espressif/esp-idf!9295
This commit is contained in:
commit
e8c8286387
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ if __name__ == "__main__":
|
|||
idf_python_env_path = os.environ.get('IDF_PYTHON_ENV_PATH')
|
||||
print(' IDF_PYTHON_ENV_PATH: {}'.format(idf_python_env_path or '(not set)'))
|
||||
print(' Python interpreter used: {}'.format(sys.executable))
|
||||
if idf_python_env_path not in sys.executable:
|
||||
if not idf_python_env_path or idf_python_env_path not in sys.executable:
|
||||
print(' Warning: python interpreter not running from IDF_PYTHON_ENV_PATH')
|
||||
print(' PATH: {}'.format(os.getenv('PATH')))
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Reference in a new issue