summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-21 08:55:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-02-21 08:55:02 (GMT)
commit2cce06805f7f8960bc059c1fc206071a2ad1491a (patch)
tree36562cef50ed1984baad25f59e78c1b8b02f56b1 /library
parent30c32418f67d6455d36bfeb1b8b4539ca5f23771 (diff)
parent5c1a56d36b45b4032778ee7f972181673a3a5ff0 (diff)
downloadtcl-2cce06805f7f8960bc059c1fc206071a2ad1491a.zip
tcl-2cce06805f7f8960bc059c1fc206071a2ad1491a.tar.gz
tcl-2cce06805f7f8960bc059c1fc206071a2ad1491a.tar.bz2
Merge 8.7
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 790ff73..e7c2f71 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -60,13 +60,13 @@ namespace eval tcl {
if {$Dir ni $::auto_path} {
lappend ::auto_path $Dir
}
- catch {
+ if {[info exists ::tcl_pkgPath]} { catch {
foreach Dir $::tcl_pkgPath {
if {$Dir ni $::auto_path} {
lappend ::auto_path $Dir
}
}
- }
+ }}
if {![interp issafe]} {
variable Path [encoding dirs]