I would bet r13731 (https://sourceforge.net/p/codeblocks/code/13731/) (Running compiled program fails because of wrong PATH) is related.
Thanks.
Yes, I think this is related.
Especially here:
@@ -1445,8 +1453,10 @@ int CompilerGCC::DoRunQueue()
else
m_timerIdleWakeUp.Start(100);
- // restore dynamic linker path
+ // restore old dynamic linker path
wxSetEnv(CB_LIBRARY_ENVVAR, oldLibPath);
+ // restore old PATH environment
+ wxSetEnv("PATH", oldPath);
delete cmd;
return DoRunQueue();
The old "PATH" get restored.
I think when we click the "run" button on the toolbar, we should also set the PATH, and when run finished, we should restore the PATH.
Hi, Morten, can you have a look?