Also search custom executables in the working directory

This commit is contained in:
dt
2009-12-08 18:19:19 +01:00
parent 14eb1f66e9
commit 2774c9c0bf

View File

@@ -300,6 +300,8 @@ QString CustomExecutableRunConfiguration::executable() const
if (QDir::isRelativePath(m_executable)) {
Environment env = project()->activeBuildConfiguration()->environment();
exec = env.searchInPath(m_executable);
if (exec.isEmpty())
exec = QDir::cleanPath(workingDirectory() + "/" + m_executable);
} else {
exec = m_executable;
}