Compare commits
2 Commits
cdd1d32cee
...
2fd344af82
| Author | SHA1 | Date | |
|---|---|---|---|
| 2fd344af82 | |||
| 4fc76e99da |
@@ -735,7 +735,7 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
|
||||
}
|
||||
if (holds_alternative<Literal>(l.args[0])) {
|
||||
if (holds_alternative<string>(get<Literal>(l.args[0]).val)) {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
/*
|
||||
@@ -2056,12 +2056,12 @@ Literal exec(vector<Instruction> 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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user