diff options
Diffstat (limited to 'bootstrap.tcl')
-rw-r--r-- | bootstrap.tcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootstrap.tcl b/bootstrap.tcl index c93ec9f..9406c19 100644 --- a/bootstrap.tcl +++ b/bootstrap.tcl @@ -1,16 +1,16 @@ # Minimal support for package require -# No error on failure since C extensions aren't handled -proc package {cmd pkg args} { +proc package {cmd args} { if {$cmd eq "require"} { foreach path $::auto_path { + lassign $args pkg set pkgpath $path/$pkg.tcl if {$path eq "."} { set pkgpath $pkg.tcl } if {[file exists $pkgpath]} { - uplevel #0 [list source $pkgpath] - return + tailcall uplevel #0 [list source $pkgpath] } } } } +set tcl_platform(bootstrap) 1 |