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='') }}"