summaryrefslogtreecommitdiff
path: root/gr-utils/python
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2019-04-21 15:52:12 +0200
committerMarcus Müller <mmueller@gnuradio.org>2019-04-21 17:48:55 +0200
commit115886220f69126f45cfde8ab19c9e6e81585a76 (patch)
treeef90a66ea58c5b19395e2f6667258ed491072b63 /gr-utils/python
parent6bfee474ec68e254108c0d2fed0e8d0317c571bc (diff)
modtool/update: late import of GRC avoids breakage on GRC-less systems
Only the update command of modtool needs GRC. However, since all commands are imported on modtool usage every time, this means modtool can't run on systems where GRC wasn't installed beforehand.
Diffstat (limited to 'gr-utils/python')
-rw-r--r--gr-utils/python/modtool/core/update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/python/modtool/core/update.py b/gr-utils/python/modtool/core/update.py
index c715426638..e3bd831989 100644
--- a/gr-utils/python/modtool/core/update.py
+++ b/gr-utils/python/modtool/core/update.py
@@ -29,7 +29,6 @@ import re
import glob
import logging
-from gnuradio.grc.converter import Converter
from .base import ModTool, ModToolException
from ..tools import get_modname
@@ -73,6 +72,7 @@ class ModToolUpdate(ModTool):
raise ModToolException("The XML bindings does not exists!")
def run(self):
+ from gnuradio.grc.converter import Converter
if not self.cli:
self.validate()
logger.warning("Warning: This is an experimental feature. Please verify the bindings.")