summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixInit.c')
-rw-r--r--unix/tclUnixInit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclUnixInit.c b/unix/tclUnixInit.c
index 0001d19..69df49c 100644
--- a/unix/tclUnixInit.c
+++ b/unix/tclUnixInit.c
@@ -59,6 +59,9 @@ static char initScript[] =
rename tclInit {}\n\
set errors {}\n\
set dirs {}\n\
+ if {[info exists env(tcl_pkgLibrary)]} {\n\
+ lappend dirs $env(tcl_pkgLibrary)\n\
+ }\n\
if [info exists env(TCL_LIBRARY)] {\n\
lappend dirs $env(TCL_LIBRARY)\n\
}\n\