From 087a7aa4767594c1c0a3c39c11dbd7503ed1a8d1 Mon Sep 17 00:00:00 2001 From: luben karavelov Date: Fri, 29 Sep 2017 23:09:35 +0000 Subject: [PATCH] Resolve included files before including them Fixes #95 : substitution inside the file should work without the full path where they are included. --- lib/src/simple_includer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/simple_includer.cc b/lib/src/simple_includer.cc index 91a70cf..5a10b0e 100644 --- a/lib/src/simple_includer.cc +++ b/lib/src/simple_includer.cc @@ -58,7 +58,7 @@ namespace hocon { } shared_object simple_includer::include_file_without_fallback(shared_include_context context, std::string what) { - return config::parse_file_any_syntax(move(what), context->parse_options())->root(); + return config::parse_file_any_syntax(move(what), context->parse_options())->resolve(config_resolve_options(true, true))->root(); } config_parse_options simple_includer::clear_for_include(config_parse_options const& options) {