File: loadtable.tcl

package info (click to toggle)
tktable 2.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 928 kB
  • ctags: 644
  • sloc: ansic: 8,027; tcl: 987; makefile: 251; sh: 152
file content (16 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# loadtable.tcl
#
# Ensures that the table library extension is loaded

set table(library) Tktable[info sharedlibextension]
if {
    [string match {} [info commands table]]
    && [catch {package require Tktable} err]
    && [catch {load [file join [pwd] $table(library)]} err]
    && [catch {load [file join [pwd] .. unix $table(library)]} err]
    && [catch {load [file join [pwd] .. win $table(library)]} err]
} {
    error $err
} else {
    puts "Tktable v[package provide Tktable] loaded"
}