mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Fix if PATH is not set
This commit is contained in:
parent
5635d6a012
commit
2cf1d72640
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user