From eb00bd14df2072acf9f80912153476ea6e657b07 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 20 Jan 2023 14:45:45 +0100 Subject: Store PATH in env in configuration.cc for use in future reconfigure calls. --- src/util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/util.h') 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 #include +#include 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 get_paths(); +std::vector get_paths(const std::string& path_env = std::getenv("PATH")); std::string locate(const std::string& app, const std::vector& paths, -- cgit v1.2.3