# Which the best way to pass parameters in the example web-project-templates-master

**URL:** https://discourse.paraview.org/t/which-the-best-way-to-pass-parameters-in-the-example-web-project-templates-master/8200
**Category:** ParaView Support
**Created:** [October 16, 2021, 7:20am UTC](https://discourse.paraview.org/t/which-the-best-way-to-pass-parameters-in-the-example-web-project-templates-master/8200 "2021-10-16T07:20:03Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.paraview.org/user_avatar/discourse.paraview.org/luis_carlos_carneiro/32/5986_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.paraview.org/u/Luis_Carlos_Carneiro)
#### Post date: [October 16, 2021, 7:20am UTC](https://discourse.paraview.org/t/which-the-best-way-to-pass-parameters-in-the-example-web-project-templates-master/8200/1 "2021-10-16T07:20:03Z")

</div>

Dear All,

If I have a parameter to pass to the functions in vtk\_protocol.py (to **init** function) which the best way to pass it. The parameter is available before calling the Paraview Python which runs vtkw-server.py.  
I tried to create a environment variable but when it runs _init_ is already not available.

Thanks,

Luís Gonçalves

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [October 16, 2021, 7:45pm UTC](https://discourse.paraview.org/t/which-the-best-way-to-pass-parameters-in-the-example-web-project-templates-master/8200/2 "2021-10-16T19:45:51Z")

</div>

Use command line arguments in the same way every pvw app is doing.

> <https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L140-L208>

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.paraview.org/user_avatar/discourse.paraview.org/luis_carlos_carneiro/32/5986_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.paraview.org/u/Luis_Carlos_Carneiro)
#### Post date: [October 16, 2021, 7:58pm UTC](https://discourse.paraview.org/t/which-the-best-way-to-pass-parameters-in-the-example-web-project-templates-master/8200/3 "2021-10-16T19:58:38Z")

</div>

Yes, I understand.

How I access the argument inside VtkCone()?

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [October 18, 2021, 3:39pm UTC](https://discourse.paraview.org/t/which-the-best-way-to-pass-parameters-in-the-example-web-project-templates-master/8200/4 "2021-10-18T15:39:58Z")

</div>

You pass it to the constructor like done [here](https://github.com/Kitware/visualizer/blob/master/server/pvw-visualizer.py#L194) for example.
