21 #include <boost/tokenizer.hpp>
31 path = ::getenv(
"PATH");
37 using tokenizer = boost::tokenizer<boost::char_separator<char>>;
38 boost::char_separator<char> sep(
":");
39 tokenizer tok(path, sep);
40 for (tokenizer::iterator it = tok.begin(); it != tok.end(); ++it)
42 std::filesystem::path p = *it;
44 if (!::access(p.c_str(), X_OK))