From 1199ea7e6511aa69db77247830e168722cc5f5c3 Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Tue, 16 Jul 2024 11:11:43 +0200 Subject: [PATCH] Fix readme instructions --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 097456527..b278a03d6 100644 --- a/README.md +++ b/README.md @@ -171,10 +171,11 @@ with meshio.xdmf.TimeSeriesReader(filename) as reader: If you have downloaded a binary version of ParaView, you may proceed as follows. -- Install meshio for the Python major version that ParaView uses (check `pvpython --version`) -- Open ParaView -- Find the file `paraview-meshio-plugin.py` of your meshio installation (on Linux: - `~/.local/share/paraview-5.9/plugins/`) and load it under _Tools / Manage Plugins / Load New_ +- Check the version of Python provided by ParaView: `./bin/pvpython -c "import sys; print(sys.version)"` +- Install meshio for that Python version in a dedicated directory: `python3 -m pip install --only-binary=:all: --python-version 3.10.13 --target /path/to/directory meshio` +- Recover [paraview-meshio-plugin.py](https://github.com/nschloe/meshio/blob/main/tools/paraview-meshio-plugin.py) +- run ParaView with `PYTHONPATH=/path/to/directory/ ./bin/paraview` +- In _Tools / Manage Plugins / Load New_, select `paraview-meshio-plugin.py` and load it - _Optional:_ Activate _Auto Load_ You can now open all meshio-supported files in ParaView.