I'm using clion with esp idf. I set it up according to this video. Some time ago the tutorial worked fine, but now it doesn't. After debugging for a while I found out that it uses python executable from mingw installation and doesn't use the python that is in the path variable. I modified the cmake file where I saw the error and I dumped path environment variable and I saw that mingw path is prepended to the system variable.
I don't knhow what changed - is it clion or mingw or something that I did.
So my question is who is prepending mingw path to PATH env. variable and how can I change it to append the path instead?