File: loadtable.tcl

package info (click to toggle)
tktable 2.3-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 792 kB
  • ctags: 510
  • sloc: ansic: 6,595; tcl: 866; sh: 157; makefile: 156
file content (15 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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] src $table(library)]} err]
    && [catch {load [file join [pwd] .. src $table(library)]} err]
} {
    error $err
} else {
    puts "Tktable v[package provide Tktable] loaded"
}