<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"><<a href="mailto:prw@ceiriog.eclipse.co.uk">prw@ceiriog.eclipse.co.uk</a>></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>
> Hi,<br>
><br>
> I am new to this mailing list and have a very basic question that<br>
> probably has been asked before. But, how do I modify a .tcl file such<br>
> that it can be executed without any error like "can't find package vtk<br>
> while executing "package require VTK" "? In other word, I think my<br>
> question is how to set path in a .tcl file. Thank you.<br>
<br>
I think you need to modify the variable "auto_path". If you execute<br>
"puts $auto_path" 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 "$auto_path /xxxxxx/lib/vtk-5.2"<br>
<br>
Peter<br>
<br>
><br>
><br>
> Chen<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>
_______________________________________________<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&D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x120<br>
</div>