Commit 4c4f64e2 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Changing order of PATH separator in search_env_path.

parent c0fabf63
Pipeline #12771 failed with stages
in 6 minutes and 2 seconds
......@@ -371,11 +371,11 @@ bool remove_file(const std::string &path)
std::string search_env_path(const std::string &filename)
{
std::string path_env = env("PATH");
std::vector<std::string> list = split_string(":", path_env);
std::vector<std::string> list = split_string(";", path_env);
if (list.size() == 1) // we didn't split anything
{
// guess it was ':' separator, try ';'
list = split_string(";", path_env);
// guess it was ':' separator, try ':'
list = split_string(":", path_env);
}
for (size_t i = 0; i < list.size(); ++i)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment