2003-02-24 Jean-Claude Wippler <jcw@equi4.com>
+ * pkgIndex.tcl, pkgIndex.tcl.in: starkit rev bumped to 1.2
* starkit.tcl: more contexts, panic ok if "." already gone
2003-02-23 Jeff Hobbs <jeffh@ActiveState.com>
}
package ifneeded vfs 1.2 [list loadvfs $dll]
-package ifneeded starkit 1.1 [list source [file join $dir starkit.tcl]]
+package ifneeded starkit 1.2 [list source [file join $dir starkit.tcl]]
package ifneeded vfslib 1.3.1 [list source [file join $dir vfslib.tcl]]
# Old
}
package ifneeded vfs 1.0 [list loadvfs $dll]
-package ifneeded starkit 1.1 [list source [file join $dir starkit.tcl]]
+package ifneeded starkit 1.2 [list source [file join $dir starkit.tcl]]
package ifneeded vfslib 1.3.1 [list source [file join $dir vfslib.tcl]]
# Old
# Starkit support, see http://www.equi4.com/starkit/
# by Jean-Claude Wippler, July 2002
-package provide starkit 1.1
+package provide starkit 1.2
# Starkit scripts can launched in a number of ways:
# - wrapped or unwrapped
# called from the startup script of a starkit to init topdir and auto_path
# returns how the script was launched: starkit, starpack, unwrapped, or
- # sourced (Jan 2003: also tclhttpd or plugin)
+ # sourced (2003: also tclhttpd, plugin, or service)
proc startup {} {
global argv0
- variable topdir ;# the root directory (while the starkit is mounted)
+
+ # 2003/02/11: new behavior, if starkit::topdir exists, don't disturb it
+ if {![info exists starkit::topdir]} {
+ variable topdir ;# the root directory (while the starkit is mounted)
+ }
set script [file normalize [info script]]
set topdir [file dirname $script]
# terminate with an error message, using most appropriate mechanism
proc panic {msg} {
if {[info commands wm] ne ""} {
- wm withdraw .
+ catch { wm withdraw . }
tk_messageBox -icon error -message $msg -title "Fatal error"
} elseif {[info commands ::eventlog] ne ""} {
eventlog error $msg