ryanvolz / radioconda

Software radio distribution and installer for conda
Other
342 stars 39 forks source link

global_blocks_path is set to system wide path #19

Closed nils-werner closed 1 year ago

nils-werner commented 2 years ago

The Global Blocks Path preference is set to the system wide /usr/local/share directory:

grc.global_blocks_path = /usr/local/share/gnuradio/grc/blocks

I believe it should be set to be inside the environment:

$CONDA_PREFIX/share/gnuradio/grc/blocks
ryanvolz commented 2 years ago

This is one way in which the GNU Radio conda package is patched: it ignores the global_blocks_path setting in the config file and looks in its installation prefix. You have that setting because of (presumably) building GNU Radio yourself and installing it into /usr/local/share, but someone who has only used the conda package should not have any line like that in their config file. Regardless, conda-gnuradio should ignore it. Are you finding that it isn't? If you need to point to a different block location, you can still use local_blocks_path.

nils-werner commented 2 years ago

Ah intersting, $CONDA_PREFIX/etc/gnuradio/conf.d/grc.conf indeed does not have that line, but the output of gnuradio-config-info --prefs shows that value regardless...

ryanvolz commented 2 years ago

The GNU Radio config system is a bit of a mess when it comes to multiple installations, e.g. https://github.com/gnuradio/gnuradio/pull/4504#issuecomment-816123195. It will still show up in gnuradio-config-info --prefs because it's still in your local config file like you noted, but in the conda case the code has been modified to not read that config variable so it should work fine.