Re: [Paraview] passing argument to pvpython script

2015-11-25 Thread Ben Boeckel
On Wed, Nov 25, 2015 at 15:11:43 +0300, Gena Bug wrote: > And this works fine untill I tried new version. In 5rc1 I always get > Segmentation Fault: > Error running > "~/ParaView-5.0.0-RC1-Qt4-OpenGL2-Linux-64bit/lib/paraview-5.0/pvpython" > "myscript.py" "filename"Segmentation fault > >

Re: [Paraview] passing argument to pvpython script

2015-11-25 Thread Gena Bug
On 25.11.2015 18:51, Ben Boeckel wrote: On Wed, Nov 25, 2015 at 15:11:43 +0300, Gena Bug wrote: And this works fine untill I tried new version. In 5rc1 I always get Segmentation Fault: Error running "~/ParaView-5.0.0-RC1-Qt4-OpenGL2-Linux-64bit/lib/paraview-5.0/pvpython" "myscript.py"

[Paraview] passing argument to pvpython script

2015-11-25 Thread Gena Bug
Hi! I often write simple scripts for pvpython which take one or more arguments (usually filenames) and run them so: $ pvpython myscript.py filename Till version 5rc1 I parse arguments using simple analysis of sys.argv, like this: {{{ ... import os, sys from paraview.simple import *