devel
| Rev | Line | |
|---|
| [6d7779d] | 1 | # Tcl package index file, version 1.1 |
|---|
| 2 | |
|---|
| 3 | proc LoadToltcl { version dir } { |
|---|
| 4 | global tcl_platform |
|---|
| [9811391] | 5 | |
|---|
| 6 | set _version [ string map [ list "." "" ] $version ] |
|---|
| 7 | if {[info exist ::env(USE_TOLTCL_$_version)]} { |
|---|
| 8 | puts "requested to load Toltcl from $::env(USE_TOLTCL_$_version)" |
|---|
| 9 | load $::env(USE_TOLTCL_$_version) |
|---|
| 10 | } else { |
|---|
| 11 | set suffix [info sharedlibextension] |
|---|
| 12 | if {$tcl_platform(platform) eq "unix"} { |
|---|
| 13 | set name libtoltcl${version}[info sharedlibextension] |
|---|
| 14 | } else { |
|---|
| 15 | set name toltcl.dll |
|---|
| 16 | } |
|---|
| 17 | load [file join $dir $name] Toltcl |
|---|
| [6d7779d] | 18 | } |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| [40eeecf] | 21 | package ifneeded Toltcl 3.3 \ |
|---|
| [f532388] | 22 | [ string map [list %d $dir] { |
|---|
| [40eeecf] | 23 | LoadToltcl 3.3 {%d} |
|---|
| [35458ba] | 24 | source [ file join {%d} toltcl.tcl ] |
|---|
| [f532388] | 25 | } ] |
|---|
| [6d7779d] | 26 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.