Hi

I'm preparing a training session on Apache and Rivet for my students and I'm going to teach them how install a trial webserver in their user disk space (we don't have root access to these computers). On a test installation my scripts could not load the 'Rivet' package anymore because the rivet0.8.0 was, as requested, located out of standard libraries tree. Packages in other subdir were correctly loaded though, because init.tcl added their path to auto_path.

So I added explicitly to auto_path the directory that contains the script init.tcl. The patch is trivial and harmless
Index: init.tcl
===================================================================
--- init.tcl    (revision 936195)
+++ init.tcl    (working copy)
@@ -85,6 +85,11 @@
           lappend auto_path ${pkgpath}$::tcl_version
       }

+ ## Likewise we have also to add to auto_path the directory containing + ## this script since it holds the pkgIndex.tcl file for package Rivet.
+
+       set auto_path [linsert $auto_path 0 [file dirname [info script]]]
+
       ## This will allow users to create proc libraries and tclIndex files
       ## in the local directory that can be autoloaded.
       ## Perhaps this must go to the front of the list to allow the user





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to