forked from qt-creator/qt-creator
Also search custom executables in the working directory
This commit is contained in:
@@ -300,6 +300,8 @@ QString CustomExecutableRunConfiguration::executable() const
|
|||||||
if (QDir::isRelativePath(m_executable)) {
|
if (QDir::isRelativePath(m_executable)) {
|
||||||
Environment env = project()->activeBuildConfiguration()->environment();
|
Environment env = project()->activeBuildConfiguration()->environment();
|
||||||
exec = env.searchInPath(m_executable);
|
exec = env.searchInPath(m_executable);
|
||||||
|
if (exec.isEmpty())
|
||||||
|
exec = QDir::cleanPath(workingDirectory() + "/" + m_executable);
|
||||||
} else {
|
} else {
|
||||||
exec = m_executable;
|
exec = m_executable;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user