which idf.py

User avatar
arunbm123
Posts: 97
Joined: Fri Feb 23, 2018 5:36 am

which idf.py

Postby arunbm123 » Tue Jul 23, 2019 7:59 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: which idf.py

Postby ESP_Angus » Tue Jul 23, 2019 9:36 am

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

Who is online

Users browsing this forum: MicroController and 96 guests