summaryrefslogtreecommitdiff
path: root/grc/core/generator/Generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/generator/Generator.py')
-rw-r--r--grc/core/generator/Generator.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py
index 4cb04bd4da..5ac8478471 100644
--- a/grc/core/generator/Generator.py
+++ b/grc/core/generator/Generator.py
@@ -28,6 +28,7 @@ from distutils.spawn import find_executable
from Cheetah.Template import Template
+from .FlowGraphProxy import FlowGraphProxy
from .. import ParseXML
from ..utils import expr_utils, odict
from ..Constants import (
@@ -82,7 +83,7 @@ class TopBlockGenerator(object):
flow_graph: the flow graph object
file_path: the path to write the file to
"""
- self._flow_graph = flow_graph
+ self._flow_graph = FlowGraphProxy(flow_graph)
self._generate_options = self._flow_graph.get_option('generate_options')
self._mode = TOP_BLOCK_FILE_MODE
dirname = self._dirname = os.path.dirname(file_path)