summaryrefslogtreecommitdiff
path: root/src/lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer.l')
-rw-r--r--src/lexer.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lexer.l b/src/lexer.l
index 188046f..f939330 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -118,7 +118,7 @@ use[ \t\r\n>]*"<" { BEGIN(cond_use); }
else {
usepath = sourcepath() / filename;
if (!fs::exists(usepath)) {
- usepath = boosty::absolute(fs::path(get_librarydir()) / filename);
+ usepath = locate_file(filename);
}
}
/* Only accept regular files which exists */
@@ -214,7 +214,7 @@ void includefile()
fs::path finfo = dirinfo / filename;
if (!exists(finfo)) {
- finfo = fs::path(get_librarydir()) / filepath / filename;
+ finfo = locate_file((fs::path(filepath) / filename).string());
}
filepath.clear();
contact: Jan Huwald // Impressum