allow top level includes (fixes #618)
This commit is contained in:
@@ -1687,11 +1687,9 @@ result_t Instruction::create(const string& contextPath, const string& type,
|
|||||||
}
|
}
|
||||||
size_t pos = contextPath.find_last_of('/');
|
size_t pos = contextPath.find_last_of('/');
|
||||||
string path;
|
string path;
|
||||||
if (pos == string::npos) {
|
if (pos != string::npos) {
|
||||||
path = contextPath;
|
|
||||||
} else {
|
|
||||||
path = contextPath.substr(0, pos+1);
|
path = contextPath.substr(0, pos+1);
|
||||||
}
|
} // else: assume contextPath is a file without path
|
||||||
auto it = row.find("file");
|
auto it = row.find("file");
|
||||||
string arg;
|
string arg;
|
||||||
if (it == row.end()) {
|
if (it == row.end()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user