1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 20:20:35 +00:00
This commit is contained in:
Carles Fernandez 2019-03-03 11:57:15 +01:00
commit 7f9c608c86
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -2086,12 +2086,15 @@ bool Gnuplot::get_program_path()
{ {
s << path; s << path;
} }
if (s.fail() or s.gcount() == 0) if (s.fail())
{ {
throw GnuplotException("PATH is not set"); throw GnuplotException("PATH is not well defined");
}
std::string path_str;
if (s.gcount() > 0)
{
path_str = s.str();
} }
std::string path_str = s.str();
std::list<std::string> ls; std::list<std::string> ls;
//split path (one long string) into list ls of strings //split path (one long string) into list ls of strings