Skip to content

Commit

Permalink
Improve search_path_initial init in genus template
Browse files Browse the repository at this point in the history
  • Loading branch information
cahz committed Apr 29, 2024
1 parent d1c9dde commit 3118c40
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/script_fmt/genus_tcl.tera
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# {{ HEADER_AUTOGEN }}
if [ info exists search_path ] {{ '{{' }}
set search_path_initial $search_path
{{ '}}' }}
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
Expand Down

0 comments on commit 3118c40

Please sign in to comment.