Hi Ian,<br><br>I added a note to the mantis issue.<br><br>I believe that it is already possible to execute python code from a string (instead of a file) like this:<br><br>#include "pqPythonShell.h"<br>#include "pqPythonDialog.h"<br>
<br>pythonManager()->pythonShellDialog()->shell()->executeScript("print 'hello world!'");<br><br>Pat<br><br><br><div class="gmail_quote">On Fri, Sep 14, 2012 at 11:03 AM, Ian Curington <span dir="ltr"><<a href="mailto:ianc@acm.org" target="_blank">ianc@acm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would like to request Extending pqPythonManager to execute pvpython from memory buffer rather<br>
than exlusively from an external file (patch supplied as at<br>
<a href="http://paraview.org/Bug/view.php?id=13456" target="_blank">http://paraview.org/Bug/view.php?id=13456</a> ).<br>
<br>
Why? Within other plugins, filters, C++ programs, can be helpful to execute some small script.<br>
Currently, such small script must first be written to file, then executed, then removed.<br>
<br>
I'd like to ask for comments, if this seems a good idea or not, - I've<br>
found it helpful in custom plugin development.<br>
<br>
--<br>
Best regards,<br>
Ian mailto:<a href="mailto:ianc@acm.org">ianc@acm.org</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>