summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2017-11-17 17:23:01 (GMT)
committerhypnotoad <yoda@etoyoc.com>2017-11-17 17:23:01 (GMT)
commitc6d82079ea51d3ce14e290d139edd76ddc971794 (patch)
tree087e94b20330d4bf46f3ce22be9406e2ccdb76f8 /library/init.tcl
parent52d32b10333a9757e6c89ddd97bbd4f2ba6c1138 (diff)
downloadtcl-c6d82079ea51d3ce14e290d139edd76ddc971794.zip
tcl-c6d82079ea51d3ce14e290d139edd76ddc971794.tar.gz
tcl-c6d82079ea51d3ce14e290d139edd76ddc971794.tar.bz2
Added a package manifest to init to allow core distributed packages to
auto-populate [package ifneeded] on startup
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 87d9f14..38d8726 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -836,3 +836,7 @@ proc tcl::CopyDirectory {action src dest} {
}
return
}
+if {[file exists [file join $::tcl_library pkgIndex.tcl]]} {
+ set dir $::tcl_library
+ source [file join $::tcl_library pkgIndex.tcl]
+}