On Sat, Feb 25, 2017 at 8:29 AM, Marcus D. Leech <mle...@ripnet.com> wrote:

> On 02/25/2017 11:14 AM, Kevin Reid wrote:
>
> On Sat, Feb 25, 2017 at 8:09 AM, Ellie White <orionnebul...@outlook.com>
> wrote:
>>
>>     self.blocks_file_sink_0 = blocks.file_sink(gr.sizeof_float*512,
>> "C:\Users\Ellie\fm_data.dat", False)
>>
>
> Your problem is here. Those backslashes need to be escaped in the string
> literal.
>
> Since this code was generated by GRC then this would seem to be a bug in
> GRC, [...]
>
> Not clear this is a bug in GRC.  Nearly all parameters in GRC blocks are
> simply Python expressions.
>

But the text entered in GRC, in this case, is not quoted, so it is not a
Python expression. Implicitly adding quotes but not implicitly escaping
backslashes is, in my opinion, an inconsistent choice.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to