Hi,

I would like to find the location of the currently running python
plugin macro.  This is so I can do an import of a library that lives
in a directory relative to the directory where all my paraview plugins
live.  Is this possible?

In a normal python programme sys.argv[0] can help me, but ofcourse
that just points to the paraview binary in this case.  os.getcwd() is
no use.  The info is known to paraview (for instance it is in
~/.config/ParaView/ParaView3.8.0.ini file under the [PythonMacros]
section - but I really don't want to go trolling through that file).

I have quite a few plugins, and I want to do the correct thing by
breaking some of the shared functionality out into a module.

Thanks for any help

Matt

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to