diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-19 23:41:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-22 12:52:58 +0300 |
commit | a37431f8109cb67937ad5356e8209a7151ad5a61 (patch) | |
tree | ff0f37fbf7d1bb9a36a9349a67676d9d145bdee4 /bdep/utility.cxx | |
parent | 1508c382589fe62b7d8829c9cd23ba5ab4bdf913 (diff) |
Make testscripts to ignore user's default options files
Diffstat (limited to 'bdep/utility.cxx')
-rw-r--r-- | bdep/utility.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bdep/utility.cxx b/bdep/utility.cxx index 148610b..5a547eb 100644 --- a/bdep/utility.cxx +++ b/bdep/utility.cxx @@ -95,6 +95,19 @@ namespace bdep } } + dir_path + home_directory () + { + try + { + return dir_path::home_directory (); + } + catch (const system_error& e) + { + fail << "unable to obtain home directory: " << e << endf; + } + } + dir_path& normalize (dir_path& d, const char* what) { |