backends: use template_utils
diff --git a/py_gen/codegen.py b/py_gen/codegen.py
index 70053f7..3c98333 100644
--- a/py_gen/codegen.py
+++ b/py_gen/codegen.py
@@ -29,6 +29,7 @@
import struct
import of_g
import loxi_front_end.type_maps as type_maps
+import template_utils
import loxi_utils.loxi_utils as utils
import util
import oftype
diff --git a/py_gen/util.py b/py_gen/util.py
index f527964..3913b9c 100644
--- a/py_gen/util.py
+++ b/py_gen/util.py
@@ -31,15 +31,16 @@
import os
import of_g
+import template_utils
import loxi_utils.loxi_utils as utils
templates_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'templates')
def render_template(out, name, **context):
- utils.render_template(out, name, [templates_dir], context)
+ template_utils.render_template(out, name, [templates_dir], context)
def render_static(out, name):
- utils.render_static(out, name, [templates_dir])
+ template_utils.render_static(out, name, [templates_dir])
def constant_for_value(version, group, value):
enums = of_g.ir[version].enums