<br><font size=2 face="sans-serif">I don't know if this helps, but my approach
was to add the following in xotcl-1.0.2/pkgIndex.tcl:</font>
<br>
<br><font size=2 face="sans-serif">set _dir_ $dir</font>
<br><font size=2 face="sans-serif">foreach {subdir} {</font>
<br><font size=2 face="sans-serif"> library/actiweb </font>
<br><font size=2 face="sans-serif"> library/comm </font>
<br><font size=2 face="sans-serif"> library/lib </font>
<br><font size=2 face="sans-serif"> library/patterns </font>
<br><font size=2 face="sans-serif"> library/rdf </font>
<br><font size=2 face="sans-serif"> library/registry </font>
<br><font size=2 face="sans-serif"> library/serialize </font>
<br><font size=2 face="sans-serif"> library/store </font>
<br><font size=2 face="sans-serif"> library/xml</font>
<br><font size=2 face="sans-serif">} {</font>
<br><font size=2 face="sans-serif"> set dir [file join $_dir_ $subdir
]</font>
<br><font size=2 face="sans-serif"> source [file join $dir pkgIndex.tcl]</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">set dir $_dir_</font>
<br><font size=2 face="sans-serif">unset _dir_</font>
<br>
<br><font size=2 face="sans-serif">This isn't as elegant as it could be--for
example, the list of subdirs could obviously be dynamically generated--but
it does use the existing package loading mechanism (including the default
pkgIndex.tcl files in the subdirs).</font>
<br>
<br><font size=2><tt>Gustaf Neumann <neumann@wu-wien.ac.at> wrote
on 05/12/2003 04:14:52 PM:<br>
<br>
> The background of this code is as follows:<br>
> - tcl searches the libraries in auto_path and the subdirs
of that.<br>
> - with xotcl i would like the get one more level to organize
the<br>
> xotcl packages more nicely.<br>
> - therefore the xotcl library is added to the auto_path.<br>
</tt></font>