From 4b95be1b3925825e573cd302a1391df4431aae7f Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 23 Aug 2019 22:09:54 +0200 Subject: [PATCH] searchFile: search also implicit relative path --- client/fileutils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/fileutils.c b/client/fileutils.c index 8e9ceb228..86835babd 100644 --- a/client/fileutils.c +++ b/client/fileutils.c @@ -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) {