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)) {
|
||||
Environment env = project()->activeBuildConfiguration()->environment();
|
||||
exec = env.searchInPath(m_executable);
|
||||
if (exec.isEmpty())
|
||||
exec = QDir::cleanPath(workingDirectory() + "/" + m_executable);
|
||||
} else {
|
||||
exec = m_executable;
|
||||
}
|
||||
|
Reference in New Issue
Block a user