diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-09 09:02:31 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-09 09:02:31 (GMT) |
commit | 0e938364fea8c3ab07b06491fd21cb34a403bf99 (patch) | |
tree | 89fea62a9478331937d4fc35a116fe44f517332b /src/fileutils.h | |
parent | db8ad9631d838fba26cab298ca9de26f0cfe3a77 (diff) |
Search for included files first in the same location as the including module, then in the document root as a compatibility fallback. Fixes #217
Diffstat (limited to 'src/fileutils.h')
-rw-r--r-- | src/fileutils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fileutils.h b/src/fileutils.h new file mode 100644 index 0000000..1f68cdb --- /dev/null +++ b/src/fileutils.h @@ -0,0 +1,9 @@ +#ifndef FILEUTILS_H_ +#define FILEUTILS_H_ + +#include <string> + +std::string lookup_file(const std::string &filename, + const std::string &path, const std::string &fallbackpath); + +#endif |