diff options
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) { |