aboutsummaryrefslogtreecommitdiff
path: root/butl/process
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-21 13:23:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-21 13:23:14 +0200
commit91a5ccf011c569dabc6cc79997ddd5f4e04592b1 (patch)
tree0cbb50172df6d2904d62b9eecf727f6b766b6687 /butl/process
parente930d5c9cb4176c6055bde2b4ff196f4b5f92f69 (diff)
Add support for process fallback search directory
Diffstat (limited to 'butl/process')
-rw-r--r--butl/process8
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