discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] GRC Importing modules from local directory


From: Josh Blum
Subject: Re: [Discuss-gnuradio] GRC Importing modules from local directory
Date: Wed, 05 Oct 2011 23:55:25 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b2 Thunderbird/3.1.15


On 10/05/2011 11:50 PM, adeel anwar wrote:
> Using GRC "import block", i want to import some custom modules from a local
> directory
> (same directory contains grc files and other files that needs to be
> imported), but it is giving error.
> As i understood, GRC doesn't recognizes the directory in which we save
> '*.grc' as its working directory
> How can i import these modules?
> 
>   Regards
>          Adeel
> 
> 

As with all things python. Put the modules in your PYTHONPATH. If you
can import the module from a python shell, it will work in GRC.

-josh



reply via email to

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