From 7fb6e253fd1a815e40d3563e3f7f2ee41037c702 Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Wed, 23 Sep 2015 16:41:39 +0200
Subject: grc: try to load block class from <import> and <make> to extract
 docstring

---
 grc/python/Platform.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'grc/python/Platform.py')

diff --git a/grc/python/Platform.py b/grc/python/Platform.py
index 4a32888894..21fd7ef8d2 100644
--- a/grc/python/Platform.py
+++ b/grc/python/Platform.py
@@ -104,7 +104,11 @@ class Platform(_Platform, _GUIPlatform):
 
     def load_block_xml(self, xml_file):
         block = _Platform.load_block_xml(self, xml_file)
-        self._docstring_extractor.query(block.get_key())
+        self._docstring_extractor.query(
+            block.get_key(),
+            block.get_imports(raw=True),
+            block.get_make(raw=True)
+        )
         return block
 
     ##############################################
-- 
cgit v1.2.3