summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-12-24 23:22:03 (GMT)
committerMarius Kintel <marius@kintel.net>2011-12-24 23:22:03 (GMT)
commit9293b591c720d2021be15b3bed56633d2ac17a8d (patch)
treecc1d05a3b9f6599f6bc2168fbfe8a78f2f6711d2 /src/parser.y
parenta5ea98c4a499bdc534d58ecf4881d6ce435d3bd5 (diff)
Ported currentdir handling from Qt to boost filesystem
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index 2fb0c3f..b8da50d 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -649,7 +649,7 @@ Module *Module::compile_library(const std::string &filename)
libs_cache[filename] = e;
Module *backup_mod = module;
- Module *lib_mod = dynamic_cast<Module*>(parse(text.str().c_str(), absolute(filename).generic_string().c_str(), 0));
+ Module *lib_mod = dynamic_cast<Module*>(parse(text.str().c_str(), path(filename).parent_path().generic_string().c_str(), 0));
module = backup_mod;
if (lib_mod) {
contact: Jan Huwald // Impressum