File: loadtable.tcl

package info (click to toggle)
tktable 2.5-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 836 kB
  • ctags: 590
  • sloc: ansic: 7,318; tcl: 920; makefile: 170; sh: 157
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"
}