[Paraview] Extending PythonManager to execute script from memory buffer rather than file (patch supplied)

2012-09-14 Thread Ian Curington
I would like to request Extending pqPythonManager to execute pvpython from memory buffer rather than exlusively from an external file (patch supplied as at http://paraview.org/Bug/view.php?id=13456 ). Why? Within other plugins, filters, C++ programs, can be helpful to execute some sma

Re: [Paraview] Extending PythonManager to execute script from memory buffer rather than file (patch supplied)

2012-09-14 Thread Pat Marion
Hi Ian, I added a note to the mantis issue. I believe that it is already possible to execute python code from a string (instead of a file) like this: #include "pqPythonShell.h" #include "pqPythonDialog.h" pythonManager()->pythonShellDialog()->shell()->executeScript("print 'hello world!'"); Pat