--- initjimsh.tcl.orig Sun Apr 5 20:13:49 2015 +++ initjimsh.tcl Mon Apr 6 19:26:10 2015 @@ -22,7 +22,12 @@ proc _jimsh_init {} { # Add to the standard auto_path lappend p {*}[split [env JIMLIB {}] $tcl_platform(pathSeparator)] - if {[exists jim::exe]} { + +# OpenBSD layout. +# Jim extensions shouldn't be installed in ${LOCALBASE}/bin. +# Don't add ${LOCALBASE}/bin to the auto_path. + + if {[exists jim::exe] && [file dirname $jim::exe] ne {${LOCALBASE}/bin}} { lappend p [file dirname $jim::exe] } lappend p {*}$auto_path