forked from ground/ground
Fix library issue
This commit is contained in:
@@ -735,7 +735,7 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
|
|||||||
}
|
}
|
||||||
if (holds_alternative<Literal>(l.args[0])) {
|
if (holds_alternative<Literal>(l.args[0])) {
|
||||||
if (holds_alternative<string>(get<Literal>(l.args[0]).val)) {
|
if (holds_alternative<string>(get<Literal>(l.args[0]).val)) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@@ -2056,12 +2056,12 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
|
|||||||
|
|
||||||
if (imported) break;
|
if (imported) break;
|
||||||
|
|
||||||
string groundLibsDir = getenv("GROUND_LIBS");
|
string groundLibsDir = string(getenv("GROUND_LIBS")) + "/";
|
||||||
|
|
||||||
if (filesystem::exists(useName)) {
|
if (filesystem::exists(useName)) {
|
||||||
// no need to do anything here
|
// no need to do anything here
|
||||||
} else if (groundLibsDir != "" && filesystem::exists(groundLibsDir + useName + ".grnd")) {
|
} else if (groundLibsDir != "" && filesystem::exists(groundLibsDir + useName)) {
|
||||||
useName = groundLibsDir + useName + ".grnd";
|
useName = groundLibsDir + useName;
|
||||||
} else {
|
} else {
|
||||||
error("Could not find external Ground library in $GROUND_LIBS (currently set to " + groundLibsDir +") or current directory.", "libraryError");
|
error("Could not find external Ground library in $GROUND_LIBS (currently set to " + groundLibsDir +") or current directory.", "libraryError");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user