Notes |
|
(0011044)
|
Berk Geveci
|
2008-04-02 16:32
|
|
This can be accomplished by setting the PYTHONPATH. Why do we have to make the programmable filter more complicated? |
|
|
(0012153)
|
Berk Geveci
|
2008-05-29 13:41
|
|
We are going to add support for setting the python path to server options. This will be in the form of being able to set a list of environmental variable for the server in the xml file. |
|
|
(0012503)
|
Utkarsh Ayachit
|
2008-06-24 11:50
|
|
There a couple of ways of dealing with the environment variable server options.
1) Use ParaView's client side XMLs for server options i.e add some XML elements to
the server configuration xml defined here http://www.paraview.org/Wiki/Server_Configuration [^] to set the environment variables. However, in this case, it will work only when using ParaView client and not when connecting to the server using pvpython.
2) Use the paraview server options (as described here:
http://www.paraview.org/Wiki/ParaView:FAQ#How_do_I_specify_cave_parameters_in_ParaView_2.2_and_later.3F [^]
)
In this case, there already exists a "Environment" tag where the user can specify the environment variables, including PYTHONPATH.
This will work even for server connected to using pvpython or any other client.
Suggestions? |
|
|
(0012526)
|
Greg Weirs
|
2008-06-25 17:32
|
|
Returning to the original feature request, what I would like is to be able to dynamically modify the the server-side python path(used by the programmable filter) from the client-side proxy to that filter.
There is an (as far as I can tell) undocumented mechanism to define and set arbitrary programmable filter properties from the client. These properties are accessible to the programmable filter script. Rather than hard-code the desired PYTHONPATH in the script (which is not dynamic) I can do it through this undocumented mechanism. However, I believe the server-side PYTHONPATH used by the programmable filter script is an important enough property that it should be promoted to a "full" (not arbitrary) property of the programmable filter.
The xml server configuration file is not dynamic, and applies to all users of the pvserver. I am looking for something that could point to directories of a particular user or restricted user group on the fly. |
|
|
(0012649)
|
Utkarsh Ayachit
|
2008-07-08 08:40
|
|
As per final request, adding a "PythonPath" property which can be set with a semi-colon separated list of directories to add to python search paths.
/cvsroot/ParaView3/ParaView3/Servers/Filters/vtkPythonProgrammableFilter.cxx,v <-- Servers/Filters/vtkPythonProgrammableFilter.cxx
new revision: 1.32; previous revision: 1.31
/cvsroot/ParaView3/ParaView3/Servers/Filters/vtkPythonProgrammableFilter.h,v <-- Servers/Filters/vtkPythonProgrammableFilter.h
new revision: 1.13; previous revision: 1.12
/cvsroot/ParaView3/ParaView3/Servers/ServerManager/Resources/pythonfilter.xml,v <-- Servers/ServerManager/Resources/pythonfilter.xml
new revision: 1.13; previous revision: 1.12 |
|
|
(0012681)
|
Alan Scott
|
2008-07-09 16:52
|
|
Closed. Greg - if this does not work, let me know and I will re-open it.
alan |
|