From 9eb04eecb17d8f1600e9f4a93c8a6491dab0eeca Mon Sep 17 00:00:00 2001 From: Carsten <19995987+cahz@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:17:57 +0200 Subject: [PATCH] Fix assignment in genus template (#165) * Fix assignment in genus template * Improve search_path_initial init in genus template --- src/script_fmt/genus_tcl.tera | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/script_fmt/genus_tcl.tera b/src/script_fmt/genus_tcl.tera index e46a504e..ade1626f 100644 --- a/src/script_fmt/genus_tcl.tera +++ b/src/script_fmt/genus_tcl.tera @@ -1,8 +1,10 @@ # {{ HEADER_AUTOGEN }} -if [ info exists search_path ] {{ '{{' }} - set search_path_initial $search_path -{{ '}}' }} -set ROOT = "{{ root }}" +if [ info exists search_path ] { + set search_path_initial $search_path +} else { + set search_path_initial {} +} +set ROOT "{{ root }}" {% if compilation_mode == 'separate' %}{% for group in srcs %} set search_path $search_path_initial {% for incdir in group.incdirs %}lappend search_path "$ROOT{{ incdir | replace(from=root, to='') }}"