# Parser in python

**URL:** <https://www.ruby-forum.com/t/parser-in-python/242207>\
**Category:** GNU Radio\
**Created:** [June 4, 2015, 11:44am UTC](https://www.ruby-forum.com/t/parser-in-python/242207 "2015-06-04T11:44:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [June 4, 2015, 11:44am UTC](https://www.ruby-forum.com/t/parser-in-python/242207/1 "2015-06-04T11:44:10Z")

</div>

Hi  
I am new to GNURADIO and are trying to have my python script take a file  
as a parameter and making gnuradio read this file and decode the  
message. But it reads the wav file in the **init** procedure, so when I  
am calling the setVariable function, the file is already read, making  
the parameter useless.  
Does anyone have a clue or an exmaple to how to do this?
