Achilleas Anastasopoulos wrote: > 1) make sure that awgn1o2.fsm is copied form > gnuradio-2.8svn/gr-trellis/src/python > to > _build/gr-trellis/src/python > > 2) make sure that inside qa_trellis.py, the reference to > the file "awgn1o2.py" is done in a way that it always > ensures it will get it from > /home/anastas/gnuradio_svn/gnuradio-2.8svn/gr-trellis/src/python
Choice 2 is the best way. At build time, there is a shell variable set to the top source directory. So you can export an environment variable: export SRCDIR=$(top_srcdir)/gr-trellis/src/python ...in the run_tests.in before the loop that invokes the qa files. Then in qa_trellis.py, import the os module: import os and reference os.environ['SRCDIR'] to get the directory where the .fsm files are. It's ugly and hackish, I know. -Johnathan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio