|
@@ -360,5 +360,6 @@ std::string ConfigFileParser::relPath(const std::string& file,
|
360
|
360
|
// pass absolute paths through unchanged
|
361
|
361
|
if (file.size() && file[0] == '/') return file;
|
362
|
362
|
curF.erase(std::find(curF.rbegin(), curF.rend(), '/').base(), curF.end());
|
|
363
|
+ if (!curF.size()) return file;
|
363
|
364
|
return curF + "/" + file;
|
364
|
365
|
}
|