Merge branch 'bugfix/check_python_deps_diagnostic' into 'master'

tools: fix diagnostic output in check_python_dependencies.py

See merge request espressif/esp-idf!9106
This commit is contained in:
Ivan Grokhotkov 2020-06-09 17:58:04 +08:00
commit 432c6fc164

View File

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