From 91a5ccf011c569dabc6cc79997ddd5f4e04592b1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 21 Aug 2016 13:23:14 +0200 Subject: Add support for process fallback search directory --- butl/process | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'butl/process') diff --git a/butl/process b/butl/process index 75f3c66..c967c44 100644 --- a/butl/process +++ b/butl/process @@ -208,8 +208,12 @@ namespace butl // // process p (pp, args); // - process_path - path_search (const char*& args0); + // You can also specify the fallback directory which will be tried last. + // This, for example, can be used to implement the Windows "search in the + // parent executable's directory" semantics across platforms. + // + static process_path + path_search (const char*& args0, const dir_path& fallback = dir_path ()); public: #ifndef _WIN32 -- cgit v1.1