# How do I make sure paraview is in the current path?

**URL:** <https://community.geodynamics.org/t/how-do-i-make-sure-paraview-is-in-the-current-path/3458>\
**Category:** PyLith\
**Created:** [May 18, 2024, 1:45pm UTC](https://community.geodynamics.org/t/how-do-i-make-sure-paraview-is-in-the-current-path/3458 "2024-05-18T13:45:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 18, 2024, 1:45pm UTC](https://community.geodynamics.org/t/how-do-i-make-sure-paraview-is-in-the-current-path/3458/1 "2024-05-18T13:45:07Z")

</div>

if ParaView is in your path, you can run the following command:  
`paraview --script=viz/plot_mesh.py`, I can’t run this command in my paraview software.

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [May 18, 2024, 4:29pm UTC](https://community.geodynamics.org/t/how-do-i-make-sure-paraview-is-in-the-current-path/3458/2 "2024-05-18T16:29:53Z")

</div>

1. Find where `paraview` is installed. This depends on your operating system and how you installed ParaView. You can use the `find` command to locate the `paraview` executable. Refer to [https://www.redhat.com/sysadmin/linux-find-command](https://www.redhat.com/sysadmin/linux-find-command) for more information about the find command.
2. You need to set your PATH environment variable so that it includes the directory containing the `paraview` executable. Refer. to [How to set your $PATH variable in Linux | Opensource.com](https://opensource.com/article/17/6/set-path-linux) for information about the PATH environment variable.

---

<div class="post-metadata">

**Author:** ![chenyq](https://avatars.discourse-cdn.com/v4/letter/c/edb3f5/32.png) [@chenyq](https://community.geodynamics.org/u/chenyq)\
**Post date:** [May 19, 2024, 12:32am UTC](https://community.geodynamics.org/t/how-do-i-make-sure-paraview-is-in-the-current-path/3458/3 "2024-05-19T00:32:24Z")

</div>

My operate system is Win11, and running pylith in the WSL, so I can’t run the below command in the WSL:  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/geodynamics/original/2X/2/2f9a154a5d7ea91a5b3d8f790366af7db10fd9ab.png)  
when I run the command, the error occured

> -bash: paraview: command not found

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [May 20, 2024, 1:57am UTC](https://community.geodynamics.org/t/how-do-i-make-sure-paraview-is-in-the-current-path/3458/4 "2024-05-20T01:57:32Z")

</div>

If you are using ParaView for Windows, then you will need to run the script inside the ParaView Python shell. Refer to the instructions provided at [ParaView Python Scripts — PyLith 4.0.0 documentation](https://pylith.readthedocs.io/en/latest/user/examples/paraview-python.html#paraview-python-scripts).
