diff options
author | suresh <suresh@noemail.net> | 1998-06-23 16:52:44 (GMT) |
---|---|---|
committer | suresh <suresh@noemail.net> | 1998-06-23 16:52:44 (GMT) |
commit | 277806c42f58b581759bd1f371f96bf7610c0110 (patch) | |
tree | 6946bf73006fd7076150c0729708afdd90b8066f /generic | |
parent | 47f09846c1bf5336d22a70417253b4cff0d1889b (diff) | |
download | tk-277806c42f58b581759bd1f371f96bf7610c0110.zip tk-277806c42f58b581759bd1f371f96bf7610c0110.tar.gz tk-277806c42f58b581759bd1f371f96bf7610c0110.tar.bz2 |
Added an additional env. var. ("tk_pkgLibrary") that is searched prior to all
other locations for the "tk.tcl" file. This facilitates application packaging.
FossilOrigin-Name: 78a56c379c63933f4f57073787ac674148c2820f
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkInitScript.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkInitScript.h b/generic/tkInitScript.h index e86d16e..f46503a 100644 --- a/generic/tkInitScript.h +++ b/generic/tkInitScript.h @@ -33,6 +33,9 @@ static char initScript[] = set tk_library .\n\ }\n\ set dirs {}\n\ + if {[info exists env(tk_pkgLibrary)]} {\n\ + lappend dirs $env(tk_pkgLibrary)\n\ + }\n\ if {[info exists env(TK_LIBRARY)]} {\n\ lappend dirs $env(TK_LIBRARY)\n\ }\n\ |