Changeset 59954c2 in tol


Ignore:
Timestamp:
Jul 3, 2011, 10:55:14 AM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b0ed7af
Parents:
d7964523
Message:

check for environment variable USE_TOLTCL_202, if this variable is set then its value is considered as the toltcl shared lib to be loaded instead of 'package require Toltcl'

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3672 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolsh/tolsh.vfs/lib/app-tolsh/tolsh.tcl

    rd7964523 r59954c2  
    393393  #
    394394  if {$options(runmode) != "server" && $options(runmode) != "shared"} {
    395     package require -exact Toltcl 2.0.2
     395    if {[info exist ::env(USE_TOLTCL_202)]} {
     396      puts "requested to load Toltcl from $::env(USE_TOLTCL_202)"
     397      load $::env(USE_TOLTCL_202)
     398    } else {
     399      package require -exact Toltcl 2.0.2
     400    }
    396401    tol::initkernel $options(lang) $options(vmode)
    397402
Note: See TracChangeset for help on using the changeset viewer.