Fix module loading

This commit is contained in:
Jason Turner 2016-10-07 21:54:40 -06:00
parent c37c901a0c
commit 21ccb1d1d0

View File

@ -128,7 +128,7 @@ std::vector<std::string> default_search_paths()
size_t secondtolastslash = exepath.rfind('/', lastslash - 1);
if (lastslash != std::string::npos)
{
paths.push_back(exepath.substr(0, lastslash));
paths.push_back(exepath.substr(0, lastslash+1));
}
if (secondtolastslash != std::string::npos)