mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Merge branch 'fix/env_var_idf_path_old_not_set_in_ps1' into 'master'
fix(tools): IDF_PATH_OLD not found in PowerShell See merge request espressif/esp-idf!35214
This commit is contained in:
commit
31b7ac775f
@ -42,7 +42,7 @@ if not os.path.exists(virtualenv_python):
|
|||||||
die(f'ESP-IDF Python virtual environment not found. Please run the install script to set it up before proceeding.')
|
die(f'ESP-IDF Python virtual environment not found. Please run the install script to set it up before proceeding.')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
run([virtualenv_python, os.path.join(idf_path, 'tools', 'export_utils', 'activate_venv.py')] + sys.argv[1:], check=True)
|
run([virtualenv_python, os.path.join(idf_path, 'tools', 'export_utils', 'activate_venv.py')] + sys.argv[1:], check=True, env=os.environ.copy())
|
||||||
except (OSError, SubprocessError):
|
except (OSError, SubprocessError):
|
||||||
die('\n'.join(['Activation script failed',
|
die('\n'.join(['Activation script failed',
|
||||||
'To view detailed debug information, set ESP_IDF_EXPORT_DEBUG=1 and run the export script again.']))
|
'To view detailed debug information, set ESP_IDF_EXPORT_DEBUG=1 and run the export script again.']))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user