summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-20 14:45:45 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-20 14:45:45 +0100
commiteb00bd14df2072acf9f80912153476ea6e657b07 (patch)
treeafdbf7b2bbc5d4d52d0b0e672d618bfab96642ff /src/util.h
parenta5585150f0ff8d27ddd22792f521f1374a3eedd8 (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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index eeb3206..af5bbd6 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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,