Kevin J. Woolley wrote:
> Jeff Hobbs wrote:
> >> I've tried setting $tcl_pkgPath and $auto_path, both in the Tkx
> >> namespace and in the main namespace to no effect.
> > Can you describe how you did this?
> 
> I didn't do it very intelligently:
> 
> $Tkx::auto_path = "/Library/Tcl";
> $Tkx::tcl_pkgPath = "/Library/Tcl";

That sets a variable in Perl-land that doesn't get reflected to Tcl.
Interesting point though - perhaps this should be tied to the relevant Tcl
var?

In any case, you only want to adjust Tcl's $::auto_path, and you want to
*extend* it (it is a Tcl list), not replace the current contents.  That would
be:

Tkx::lappend('::auto_path', '/Library/Tcl');

> Okay, are there any generic instructions that can be used for a package 
> not included in the tkkit?

The above should suffice to find any locally installed packages not provided
already in the tkkit, which only looks inside itself by default for security
and safe encapsulation reasons.

Jeff

Reply via email to