allow top level includes (fixes #618)

This commit is contained in:
John
2022-09-18 08:19:56 +02:00
parent ce6ea68f22
commit 5eb0a47183
+2 -4
View File
@@ -1687,11 +1687,9 @@ result_t Instruction::create(const string& contextPath, const string& type,
}
size_t pos = contextPath.find_last_of('/');
string path;
if (pos == string::npos) {
path = contextPath;
} else {
if (pos != string::npos) {
path = contextPath.substr(0, pos+1);
}
} // else: assume contextPath is a file without path
auto it = row.find("file");
string arg;
if (it == row.end()) {