Python portability Question

Hello List;

I have successfully created a python program using GnuRadio Companion.

When I look at the generated “file.py” there are a number of “import”
statements.

Such as “from gnuradio import audio”, etc.

If I want to run the program on a Linux system with Python support, but
without

GnuRadio, GRC, etc. What should I do ?

Can I simply remove the “from gnuradio” part of the command and put
everything in the same directory ?

Then just change all the ‘imports’ to “import audio” etc, etc ??

Thanks;

Bill

Bill,

“If I want to run the program on a Linux system with Python support,
but without GnuRadio, GRC, etc.”

This won’t work - you’ll have to have the Gnuradio C++ backend
installed somewhere on the system for your Python script to use. The
Python code that you are importing is just a wrapper for the C++
executables.

Andrew H.

On Sun, May 13, 2012 at 8:27 PM, William Pretty Security