The 'paraview' directory is the module.  Python treats directories that 
contain a __init__.py file as modules.  So you want your python path to 
contain "/Applications/ParaView 3.10.1.app/Contents/Python", and drop the 
/paraview ending.<br><br>But, I recommend you use pvpython instead of python.  The paraview python modules may not be compatible with your system python.  Using pvpython also ensures that all paths are set correctly, so you don&#39;t need to set PYTHONPATH.  You can find pvpython at:<br>
<br>  /Applications/ParaView\ 3.10.1.app/Contents/bin/pvpython<br><br>If you want to try system python, you need to:<br><br>export PYTHONPATH=/Applications/ParaView\ 3.10.1.app/Contents/Python:/Applications/ParaView\ 3.10.1.app/Contents/Libraries<br>
export DYLD_LIBRARY_PATH=/Applications/ParaView\ 3.10.1.app/Contents/Libraries<br><br>I&#39;m not sure it will work for you though.  On my system, python aborts when the modules are loaded.<br><br>Pat<br><br><div class="gmail_quote">
On Fri, Sep 30, 2011 at 11:51 AM, Colin McAuliffe <span dir="ltr">&lt;<a href="mailto:cjm2176@columbia.edu">cjm2176@columbia.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello all,<br>
<br>
As I understand it, to take advantage of python scripting the PYTHONPATH variable must be set manually. I have added:<br>
<br>
PYTHONPATH=&quot;/Applications/<u></u>ParaView 3.10.1.app/Contents/Python/<u></u>paraview:${PYTHONPATH}&quot;<br>
export PYTHONPATH<br>
<br>
Which is the location of .py modules. I am not able to locate the module paraview however. Where would this module be located?<br>
<br>
Thanks<br>
<br>
-- <br>
Colin McAuliffe<br>
PhD Candidate<br>
Columbia University<br>
Department of Civil Engineering and Engineering Mechanics<br>
______________________________<u></u>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/<u></u>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/<u></u>mailman/listinfo/paraview</a><br>
</blockquote></div><br>