diff options
Diffstat (limited to 'gr-utils/python/modtool/cli/newmod.py')
-rw-r--r-- | gr-utils/python/modtool/cli/newmod.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gr-utils/python/modtool/cli/newmod.py b/gr-utils/python/modtool/cli/newmod.py index 6082fb7beb..cdb4b56cfb 100644 --- a/gr-utils/python/modtool/cli/newmod.py +++ b/gr-utils/python/modtool/cli/newmod.py @@ -21,7 +21,6 @@ from gnuradio import gr from ..core import ModToolNewModule from .base import common_params, run, cli_input, ModToolException - @click.command('newmod', short_help=ModToolNewModule.description) @click.option('--srcdir', help="Source directory for the module template.") @@ -45,8 +44,7 @@ def cli(**kwargs): else: raise ModToolException('The given directory exists.') 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') if not os.path.isdir(self.srcdir): raise ModToolException('Could not find gr-newmod source dir.') run(self) |