searchFile: search also implicit relative path

This commit is contained in:
Philippe Teuwen 2019-08-23 22:09:54 +02:00
parent 8c26e07ceb
commit 4b95be1b39

View file

@ -677,6 +677,12 @@ char *searchFile(const char *pm3dir, const char *suffix, const char *preferredNa
return NULL;
}
// else
// try implicit relative path
{
if (fileExists(filename))
return filename;
}
// try pm3 dirs in current workdir (dev mode)
const char *exec_path = get_my_executable_directory();
if (exec_path != NULL) {