Skip to content

Commit

Permalink
Merge branch 'master' into doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtournier authored May 20, 2020
2 parents 6143f91 + 2821ec4 commit dc0af3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/math/stats/import.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ namespace MR
}

vector<std::string> directories { Path::dirname (listpath) };
if (directories[0].size() && directories[0] != ".")
if (directories[0].empty())
directories[0] = ".";
else if (directories[0] != ".")
directories.push_back (".");
if (explicit_from_directory.size())
directories.insert (directories.begin(), explicit_from_directory);
Expand Down

0 comments on commit dc0af3d

Please sign in to comment.