<div dir="ltr">Hello<div><br></div><div>Sorry to bother, but I can't seem to find a way (in the mailing list or the documentation) to pass a string as some kind of argument to Programmable Source (using pvpython interpreter). The python "program" needs to load a custom binary format using numpy.fromfile.</div><div><br></div><div>What I've thought is to write a wrapper function. The function should receive a string as argument and then instantiate a programmable filter and execute </div><div>myscript.replace(random_var_name, myfilename)</div><div>MyProgrammableSource.Script = myscript</div><div>return MyProgrammableSource</div><div><br></div><div>Where random_var_name is the argument of my numpy.fromfile call. But that doesn't seem very "pythonic". Is there a way to pass a string to the Script without the .replace hack?<br></div><div><br></div><div>Sorry if this is documented, I couldn't find it.</div><div><br></div><div>Cheers,</div><div>Mauro</div></div>