discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Best way to share/install hierarchical grc blocks


From: Porges, Donald
Subject: Re: [Discuss-gnuradio] Best way to share/install hierarchical grc blocks?
Date: Thu, 15 Mar 2012 17:14:00 -0400

I've read that, and it only applies to telling grc where the xml is for a 
non-hierarchical block; that is, it solves a build-time problem, not a runtime 
problem.


On Mar 15, 2012, at 5:07 PM, Tom Rondeau wrote:

On Thu, Mar 15, 2012 at 3:28 PM, Porges, Donald 
<address@hidden<mailto:address@hidden>> wrote:
Hi,

I'm trying to figure out a good way to distribute some custom heir blocks that 
go with my low-level custom blocks I've written.  The issue is that the xml and 
py files are both generated into my ~/.grc_gnuradio directory, and the xml 
files contain lines like

execfile("/Users/myname/.grc_gnuradio/file.py")

which obviously is not distributable.  (Those lines get generated into any grc 
output files that use the block, so editing it at the point of use is not much 
of a solution.)

The obvious answer is to edit that line by hand, but the next problem is that I 
don't even know where the gnuradio directory is for other people (could be a 
different host platform, for instance).  There also seems to be no "execfile 
search path" concept, which would allow me to perform some light editing of the 
xml file to remove the absolute path.  So how do people share their created 
hierarchical blocks?

(I suppose the answer could be "give them my .grc_gnuradio files and tell them 
to edit all of the references", but that doesn't make for a nice delivery.)

Don Porges
Lyric Labs/Analog Devices


Does this help?

http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Installing-the-XML-Block-Definition

Tom






reply via email to

[Prev in Thread] Current Thread [Next in Thread]