Change 'which' so that it processes relative paths like wpd/wpd2html.exe
This commit is contained in:
parent
8ce89f3ac1
commit
806c7856f2
@ -401,7 +401,7 @@ bool ExecCmd::which(const string& cmd, string& exe, const char* path)
|
|||||||
pep = &s_pathelts;
|
pep = &s_pathelts;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cmd.find_first_of("/\\") != string::npos) {
|
if (path_isabsolute(cmd)) {
|
||||||
if (is_exe_base(cmd)) {
|
if (is_exe_base(cmd)) {
|
||||||
exe = cmd;
|
exe = cmd;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user