discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] grc code generation issues with name confliction


From: Josh Blum
Subject: Re: [Discuss-gnuradio] grc code generation issues with name confliction
Date: Fri, 09 Sep 2011 22:13:30 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Lightning/1.0b2 Thunderbird/3.1.12


On 09/09/2011 09:36 PM, Kyle Zhou wrote:
> If I have two packages 'packa' and 'packb', each of them has a module 'modc'.
> This is not a problem since they belong to different packages.
> But if I use these two modules in GRC at the same time, the following python 
> codes are generated:
> 
> from packa import modc
> from packb import modc
> 
> Thereafter, name confliction happens. Only packb.modc is accessible.
> 
> 

If you wrote the xml files, you need to change them in such a way so
that they dont conflict.

Ex:
from packa import modc as packa_modc
packa_modc.my_block(....)

I bet there are many other ways to do this. Its just python :-)

-josh



reply via email to

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