forked from qt-creator/qt-creator
Utils: Use the path from the current object
... in Environment::searchInPath().
Amends 6ab66690.
Change-Id: I04984c6a84c4448a6cd6d4d2677c84ed54376fee
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -223,7 +223,8 @@ FilePath Environment::searchInPath(const QString &executable,
|
||||
const FilePathPredicate &filter) const
|
||||
{
|
||||
const FilePath exec = FilePath::fromUserInput(expandVariables(executable));
|
||||
return exec.searchInPath(additionalDirs, {}, filter, FilePath::WithAnySuffix);
|
||||
const FilePaths dirs = path() + additionalDirs;
|
||||
return exec.searchInDirectories(dirs, filter, FilePath::WithAnySuffix);
|
||||
}
|
||||
|
||||
FilePaths Environment::path() const
|
||||
|
||||
Reference in New Issue
Block a user