Index: Source/core/scripts/in_generator.py |
diff --git a/Source/core/scripts/in_generator.py b/Source/core/scripts/in_generator.py |
index dad625ee354cab4a1ba1b969a087ab4175f0e357..175fb46861ead5b3bf6e55d0e8e541137938f46b 100644 |
--- a/Source/core/scripts/in_generator.py |
+++ b/Source/core/scripts/in_generator.py |
@@ -30,6 +30,7 @@ import os.path |
import shutil |
from in_file import InFile |
+import template_expander |
class Writer(object): |
@@ -84,6 +85,8 @@ class Writer(object): |
def _write_file(self, output_dir, generator, file_name): |
contents = generator() |
+ if type(contents) is dict: |
+ contents = template_expander.apply_template(file_name + ".tmpl", contents) |
if not contents: |
return |
path = os.path.join(output_dir, file_name) |