1 Star 0 Fork 0

SR达人/msteveb_jimtcl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
bootstrap.tcl 359 Bytes
一键复制 编辑 原始数据 按行查看 历史
Steve Bennett 提交于 2018-09-04 07:54 . bootstrap package support
# Minimal support for package require
# No error on failure since C extensions aren't handled
proc package {cmd pkg args} {
if {$cmd eq "require"} {
foreach path $::auto_path {
set pkgpath $path/$pkg.tcl
if {$path eq "."} {
set pkgpath $pkg.tcl
}
if {[file exists $pkgpath]} {
uplevel #0 [list source $pkgpath]
return
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sr-master/msteveb_jimtcl.git
git@gitee.com:sr-master/msteveb_jimtcl.git
sr-master
msteveb_jimtcl
msteveb_jimtcl
master

搜索帮助