home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activetcltk / ActiveTcl8.3.4.1-8.win32-ix86.exe / ActiveTcl8.3.4.1-win32-ix86 / demos / Tktable / loadtable.tcl < prev    next >
Encoding:
Text File  |  2001-10-22  |  496 b   |  17 lines

  1. # loadtable.tcl
  2. #
  3. # Ensures that the table library extension is loaded
  4.  
  5. set table(library) Tktable[info sharedlibextension]
  6. if {
  7.     [string match {} [info commands table]]
  8.     && [catch {package require Tktable} err]
  9.     && [catch {load [file join [pwd] $table(library)]} err]
  10.     && [catch {load [file join [pwd] .. unix $table(library)]} err]
  11.     && [catch {load [file join [pwd] .. win $table(library)]} err]
  12. } {
  13.     error $err
  14. } else {
  15.     puts "Tktable v[package provide Tktable] loaded"
  16. }
  17.