diff options
author | Marius Kintel <marius@kintel.net> | 2012-06-24 14:29:28 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-06-24 14:29:28 (GMT) |
commit | 22c5f37424e42b69442ef6b020b650c0e685a8c3 (patch) | |
tree | 4246e75e0c9b133df4513d13186a3ece3c288118 /src/lexer.l | |
parent | 0e6b80015504b36363c5545744b6627554c4d10b (diff) |
Search for libraries from a list of paths. Preparations for issue #125
Diffstat (limited to 'src/lexer.l')
-rw-r--r-- | src/lexer.l | 4 |
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(); |