<div dir="ltr">You can also set the environment variable TCLLIBPATH to the location of the pkgIndex.tcl file prior to executing the tcl file.<br><br>- Wes<br><br><div class="gmail_quote">On Wed, Sep 17, 2008 at 12:51 PM, Peter Wainwright <span dir="ltr">&lt;<a href="mailto:prw@ceiriog.eclipse.co.uk">prw@ceiriog.eclipse.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Wed, 2008-09-17 at 06:27 -0500, Hua-Mei Chen wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; &nbsp; &nbsp; I am new to this mailing list and have a very basic question that<br>
&gt; probably has been asked before. But, how do I modify a .tcl file such<br>
&gt; that it can be executed without any error like &quot;can&#39;t find package vtk<br>
&gt; while executing &quot;package require VTK&quot; &quot;? &nbsp;In other word, I think my<br>
&gt; question is how to set path in a .tcl file. Thank you.<br>
<br>
I think you need to modify the variable &quot;auto_path&quot;. &nbsp;If you execute<br>
&quot;puts $auto_path&quot; in tclsh, you will see the default value, for me it is<br>
<br>
% puts $auto_path<br>
/usr/share/tcltk/tcl8.4 /usr/lib /usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk<br>
<br>
Just add the path to the directory which contains the pkgIndex.tcl file<br>
for VTK, e.g.<br>
<br>
set auto_path &quot;$auto_path /xxxxxx/lib/vtk-5.2&quot;<br>
<br>
Peter<br>
<br>
&gt;<br>
&gt;<br>
&gt; Chen<br>
&gt; _______________________________________________<br>
&gt; This is the private VTK discussion list.<br>
&gt; Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Wesley D. Turner, Ph.D.<br>Kitware, Inc.<br>R&amp;D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x120<br>
</div>