Make paths in the .pvsm file relative to the .pvsm file.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
This is an issue relating to cross-platform usage of the ParaView .pvsm files.
The problem I have is that when I create a .pvsm file under Windows and then move the file and associated datafiles to Linux, the absolute pathnames to the data files won't work (obviously). I now hand edit the file and convert the pathnames to relative pathnames which seems to work Ok.
How difficult would it be to use relative paths (relative to the .pvsm file) and add the path to the .pvsm file when locating the datafiles.
E.g If I created the .pvsm file in Windows my datafile may be called: "C:\Documents and Settings\amaclean\My Documents\Code\GeneralLibraries\UF\build\bin\release/bench.vtp" However if I am in Linux the datafile will end up in some directory such as: "/home/users/amaclean/WhoKnows/bench.vtp"
So would it be possible to store these paths as relative to where the .pvsm file is stored? E.g ./bench.vtp and then let ParaView add the pathname of the .pvs, file to these names?