From 21ccb1d1d0d9d16c92b75c497721435f269b7afd Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Fri, 7 Oct 2016 21:54:40 -0600 Subject: [PATCH] Fix module loading --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4e73389b..61ca7c11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -128,7 +128,7 @@ std::vector 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)