forked from qt-creator/qt-creator
expand working directory before looking for a command in it
Reviewed-by: hunger
This commit is contained in:
@@ -355,7 +355,8 @@ void AbstractProcessStep::slotProcessFinished(int, QProcess::ExitStatus)
|
|||||||
|
|
||||||
QString AbstractProcessStep::expandedCommand() const
|
QString AbstractProcessStep::expandedCommand() const
|
||||||
{
|
{
|
||||||
QString command = m_environment.searchInPath(m_command, QStringList() << workingDirectory());
|
QString command = m_environment.searchInPath(
|
||||||
|
m_command, QStringList() << m_environment.expandVariables(m_workingDirectory));
|
||||||
if (command.isEmpty())
|
if (command.isEmpty())
|
||||||
command = m_command;
|
command = m_command;
|
||||||
return command;
|
return command;
|
||||||
|
|||||||
Reference in New Issue
Block a user