Jeff Hobbs wrote:
$Tkx::auto_path = "/Library/Tcl";
$Tkx::tcl_pkgPath = "/Library/Tcl";
That sets a variable in Perl-land that doesn't get reflected to Tcl.
I thought that would be the case, but it was worth a try.
Interesting point though - perhaps this should be tied to the relevant Tcl
var?
It would be good for many of the variables in the tclvars manpage, I think.
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
I got this working on Mac OS X/x86 with ActivePerl 5.8.8.820 and
ActiveTcl 8.4.14. I did have to set the ITK_LIBRARY and ITCL_LIBRARY
environment variables, but that's not a problem -- they can be set to
the relevant subdirectories of /Library/Tcl.
Cheers,
kjw