diff options
Diffstat (limited to 'gr-utils/python/modtool/core/newmod.py')
-rw-r--r-- | gr-utils/python/modtool/core/newmod.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-utils/python/modtool/core/newmod.py b/gr-utils/python/modtool/core/newmod.py index 4ceae70b24..1d22626e10 100644 --- a/gr-utils/python/modtool/core/newmod.py +++ b/gr-utils/python/modtool/core/newmod.py @@ -23,7 +23,6 @@ from .base import ModTool, ModToolException logger = logging.getLogger(__name__) - class ModToolNewModule(ModTool): """ Create a new out-of-tree module """ name = 'newmod' @@ -37,8 +36,7 @@ class ModToolNewModule(ModTool): def assign(self): self.dir = os.path.join(self.directory, 'gr-{}'.format(self.info['modname'])) if self.srcdir is None: - self.srcdir = '/usr/local/share/gnuradio/modtool/templates/gr-newmod' - self.srcdir = gr.prefs().get_string('modtool', 'newmod_path', self.srcdir) + self.srcdir = os.path.join(gr.prefix(),'share','gnuradio','modtool','templates','gr-newmod') def validate(self): """ Validates the arguments """ |