discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] make distcheck fails


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] make distcheck fails
Date: Fri, 11 Aug 2006 19:47:33 -0700
User-agent: Thunderbird 1.5.0.5 (X11/20060728)

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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