[PD-dev] folder for tcl extensions

Krzysztof Czaja czaja at chopin.edu.pl
Tue May 24 22:29:03 CEST 2005

> Hans-Christoph Steiner wrote:
>> * the standalone Wish has the directory Wish\ Shell.app/Contents/lib 
>> in its
>> auto_path. Thus you can place tcl extensions in this directory (i.e. 
>> embed
>> them in the app package) and load them with [package require].

. auto_path is read/write

. tcl searches immediate subdirectories too

So, more cross-platformly perhaps, the sys_searchpath contents
might be appended to auto_path.  Then, if a gui external or
library "example" has its binary in extra, extra/example directory
will host its tcl part with a pkgIndex.tcl, declaring
"package ifneeded example ...").  The only sys_gui call in the
example's setup routine will be for "package require example".


More information about the Pd-dev mailing list