diff options
-rw-r--r-- | grc/core/Constants.py | 1 | ||||
-rw-r--r-- | grc/core/Platform.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/grc/core/Constants.py b/grc/core/Constants.py index eeb1d7f848..808ff12628 100644 --- a/grc/core/Constants.py +++ b/grc/core/Constants.py @@ -27,6 +27,7 @@ FLOW_GRAPH_DTD = os.path.join(DATA_DIR, 'flow_graph.dtd') BLOCK_TREE_DTD = os.path.join(DATA_DIR, 'block_tree.dtd') BLOCK_DTD = os.path.join(DATA_DIR, 'block.dtd') DEFAULT_FLOW_GRAPH = os.path.join(DATA_DIR, 'default_flow_graph.grc') +USER_DEFAULT_FLOW_GRAPH = os.path.expanduser('~/.grc_gnuradio/default_flow_graph.grc') DOMAIN_DTD = os.path.join(DATA_DIR, 'domain.dtd') # File format versions: diff --git a/grc/core/Platform.py b/grc/core/Platform.py index 9b25e67d65..557ceba6df 100644 --- a/grc/core/Platform.py +++ b/grc/core/Platform.py @@ -61,7 +61,8 @@ class Platform(Element): ) self._block_dtd = Constants.BLOCK_DTD - self._default_flow_graph = Constants.DEFAULT_FLOW_GRAPH + self._default_flow_graph = Constants.USER_DEFAULT_FLOW_GRAPH if \ + os.path.exists(Constants.USER_DEFAULT_FLOW_GRAPH) else Constants.DEFAULT_FLOW_GRAPH # Create a dummy flow graph for the blocks self._flow_graph = Element(self) |