diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-21 13:23:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-21 13:23:14 +0200 |
commit | 91a5ccf011c569dabc6cc79997ddd5f4e04592b1 (patch) | |
tree | 0cbb50172df6d2904d62b9eecf727f6b766b6687 /butl/process | |
parent | e930d5c9cb4176c6055bde2b4ff196f4b5f92f69 (diff) |
Add support for process fallback search directory
Diffstat (limited to 'butl/process')
-rw-r--r-- | butl/process | 8 |
1 files changed, 6 insertions, 2 deletions
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 |