Page 1 of 1

which idf.py

Posted: Tue Jul 23, 2019 7:59 am
by arunbm123
hello friends

I am trying which idf.py
A path like ${IDF_PATH}/tools/idf.py should be printed.

Instead I am getting following===>

Code: Select all

$ 
which idf.py
which: no idf.py in (/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/opt/xtensa-esp32-elf/bin:C:/msys32/home/renu/esp/esp-idf/tools:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
Kindly let me know whats wrong I see esp-idf/tools is included

Re: which idf.py

Posted: Tue Jul 23, 2019 9:36 am
by ESP_Angus
Hi arunbm,

In MSYS2, the PATH statement is delimited by colons. So this part:

Code: Select all

:C:/msys32/home/renu/esp/esp-idf/tools:
Is parsed as one entry of "C" and one entry of "/msys32/home/renu/esp/esp-idf/tools". Change to the MSYS2-style "/c/msys32/home/renu/esp/esp-idf/tools" and it should work.

Note that if moving to CMake & idf.py, the MSYS2 Unix emulation environment is no longer required - you can build from a regular Windows Command Prompt or PowerShell if you like (in which case the PATH is the Windows system path, set in the System control panel).