diff --git a/src/main.cpp b/src/main.cpp index c8cdb84..985d2f5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -735,7 +735,7 @@ Literal exec(vector in, bool executingFunction) { } if (holds_alternative(l.args[0])) { if (holds_alternative(get(l.args[0]).val)) { - + } } /* @@ -2056,12 +2056,12 @@ Literal exec(vector in, bool executingFunction) { if (imported) break; - string groundLibsDir = getenv("GROUND_LIBS"); + string groundLibsDir = string(getenv("GROUND_LIBS")) + "/"; if (filesystem::exists(useName)) { // no need to do anything here - } else if (groundLibsDir != "" && filesystem::exists(groundLibsDir + useName + ".grnd")) { - useName = groundLibsDir + useName + ".grnd"; + } else if (groundLibsDir != "" && filesystem::exists(groundLibsDir + useName)) { + useName = groundLibsDir + useName; } else { error("Could not find external Ground library in $GROUND_LIBS (currently set to " + groundLibsDir +") or current directory.", "libraryError"); }