I'm trying to use a tcl "package require" command within AolServer.
After trawling through the AolServer mailing list, I've come up
with the following hack which needs executing before doing the
"package require":
global tcl_version tcl_pkgPath tcl_library
tcl_platform auto_path
set tcl_pkgPath /usr/lib
set tcl_library [file join $tcl_pkgPath
tcl${tcl_version}]
set tcl_platform(platform) "unix"
set auto_path [list /usr/lib/tcl8.3 /usr/lib]
source [file join $tcl_library init.tcl]
source [file join $tcl_library package.tcl]
Its not only ugly, but also includes hardcoded stuff, which just won't
do. Has anyone done this before, and maybe has a more elegant
solution, or alternatively could think of a way to populate the
tcl_pkgPath, auto_path and tcl_platform variables?
Cheers,