diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-20 14:45:45 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-01-20 14:45:45 +0100 |
commit | eb00bd14df2072acf9f80912153476ea6e657b07 (patch) | |
tree | afdbf7b2bbc5d4d52d0b0e672d618bfab96642ff /src/util.h | |
parent | a5585150f0ff8d27ddd22792f521f1374a3eedd8 (diff) |
Store PATH in env in configuration.cc for use in future reconfigure calls.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ #include <string> #include <filesystem> +#include <cstdlib> std::string to_lower(const std::string& str); @@ -23,7 +24,7 @@ void append(T& a, const T& b) std::string esc(const std::string& in); -std::vector<std::string> get_paths(); +std::vector<std::string> get_paths(const std::string& path_env = std::getenv("PATH")); std::string locate(const std::string& app, const std::vector<std::string>& paths, |