summaryrefslogtreecommitdiff
path: root/gr-utils/modtool/tests/test_modtool.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/modtool/tests/test_modtool.py')
-rw-r--r--gr-utils/modtool/tests/test_modtool.py23
1 files changed, 16 insertions, 7 deletions
diff --git a/gr-utils/modtool/tests/test_modtool.py b/gr-utils/modtool/tests/test_modtool.py
index c233337b55..c118fe83bc 100644
--- a/gr-utils/modtool/tests/test_modtool.py
+++ b/gr-utils/modtool/tests/test_modtool.py
@@ -23,13 +23,22 @@ try:
except:
skip_pylint_test = True
-from modtool.core import ModToolNewModule
-from modtool.core import ModToolAdd
-from modtool.core import ModToolDisable
-from modtool.core import ModToolException
-from modtool.core import ModToolMakeYAML
-from modtool.core import ModToolRename
-from modtool.core import ModToolRemove
+try: # for debugging, full path must be given
+ from gnuradio.modtool.core import ModToolNewModule
+ from gnuradio.modtool.core import ModToolAdd
+ from gnuradio.modtool.core import ModToolDisable
+ from gnuradio.modtool.core import ModToolException
+ from gnuradio.modtool.core import ModToolMakeYAML
+ from gnuradio.modtool.core import ModToolRename
+ from gnuradio.modtool.core import ModToolRemove
+except:
+ from modtool.core import ModToolNewModule
+ from modtool.core import ModToolAdd
+ from modtool.core import ModToolDisable
+ from modtool.core import ModToolException
+ from modtool.core import ModToolMakeYAML
+ from modtool.core import ModToolRename
+ from modtool.core import ModToolRemove
class TestModToolCore(unittest.TestCase):
""" The tests for the modtool core """