Forum: GNU Radio GRCC generation

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
9616519a2e715b547f60efba3bae8da1?d=identicon&s=25 Miklos Maroti (Guest)
on 2013-08-11 23:02
(Received via mailing list)

I would like to add a CMAKE rule to my out of tree module to generate
hierarchical blocks from GRC files using the GRCC tool. However, GRCC
refuses to pus the generated py and xml files to the right directory,
and instead it always places them into the $HOME/.grc_modules
directory even if another one is specified with the --directory
option. The problem (I think) is in the file, where

        self._generate_options =
        if self._generate_options == 'hb':
            self._mode = HIER_BLOCK_FILE_MODE
            dirname = HIER_BLOCKS_LIB_DIR
            self._mode = TOP_BLOCK_FILE_MODE
            dirname = os.path.dirname(file_path)
            #handle the case where the directory is read-only
            #in this case, use the system's temp directory
            if not os.access(dirname, os.W_OK):
                dirname = tempfile.gettempdir()

So all hierarchical blocks are placed to HIEAR_BLOCKS_LIB_DIR, and the
file path argument is discarded. So how can I generate python code and
xml files for hierarchical blocks from grc sources in an automated

This topic is locked and can not be replied to.