summaryrefslogtreecommitdiff
path: root/src/scripts/pyolian/generator.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-01-02 21:52:57 +0100
committerDave Andreoli <dave@gurumeditation.it>2018-01-02 21:52:57 +0100
commita2b24d09489930beb949fb1fbc836cc5058f561f (patch)
treef0b3c9c40650057e02184ea5153c4b43ccba7a1a /src/scripts/pyolian/generator.py
parentb9ed84f4edc505737c9f9d034c24e080f5fa2242 (diff)
Pyolian: fix segfault on shutdown
also improve abit all_namespaces performance by using a set (hashable)
Diffstat (limited to 'src/scripts/pyolian/generator.py')
-rwxr-xr-xsrc/scripts/pyolian/generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scripts/pyolian/generator.py b/src/scripts/pyolian/generator.py
index 140b620a6d..c50eead66a 100755
--- a/src/scripts/pyolian/generator.py
+++ b/src/scripts/pyolian/generator.py
@@ -174,8 +174,8 @@ class Template(pyratemp.Template):
174 ctx['alias'] = eolian_db.typedecl_alias_get_by_name(alias) 174 ctx['alias'] = eolian_db.typedecl_alias_get_by_name(alias)
175 175
176 if verbose and filename: 176 if verbose and filename:
177 print('generating "{}" from template "{}"'.format( 177 print("rendering: {} => {}".format(
178 filename, self.template_filename)) 178 self.template_filename, filename))
179 179
180 # render with the augmented context 180 # render with the augmented context
181 output = self(**ctx) 181 output = self(**ctx)