summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textual.cc b/src/textual.cc
index bc91ef52..b2108dcf 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -743,7 +743,7 @@ void instance_t::include_directive(char * line)
DEBUG("textual.include", "parent file path: " << context.pathname);
path parent_path = context.pathname.parent_path();
if (parent_path.empty()) {
- filename = path(string(".")) / line;
+ filename = context.current_directory / line;
} else {
filename = parent_path / line;
DEBUG("textual.include", "normalized path: " << filename.string());