Change 'which' so that it processes relative paths like wpd/wpd2html.exe

This commit is contained in:
Jean-Francois Dockes 2015-10-30 11:39:25 +01:00
parent 8ce89f3ac1
commit 806c7856f2

View File

@ -401,7 +401,7 @@ bool ExecCmd::which(const string& cmd, string& exe, const char* path)
pep = &s_pathelts;
}
if (cmd.find_first_of("/\\") != string::npos) {
if (path_isabsolute(cmd)) {
if (is_exe_base(cmd)) {
exe = cmd;
return true;