summaryrefslogtreecommitdiff
path: root/grc/core/Platform.py
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe+github@gmail.com>2016-07-15 15:29:23 -0700
committerSebastian Koslowski <koslowski@kit.edu>2016-08-03 17:37:55 +0200
commitf3f86da18174ba6db53111b9473c61845e2f460e (patch)
tree3ae077c0b6029b4098f9ac6647cb0ef00b2a5a23 /grc/core/Platform.py
parent457186838d12607bcf9f5e61eaf937ff5fa090e0 (diff)
grc: look for default_flow_graph.grc in ~/.grc_gnuradio
allows users to create their own template flow graph
Diffstat (limited to 'grc/core/Platform.py')
-rw-r--r--grc/core/Platform.py3
1 files changed, 2 insertions, 1 deletions
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)