This is needed to fix loading the vfs package into child interpreters.
git-svn-id: svn://svn.equi4.com/kitgen/trunk@4471
9e558909-932a-0410-a563-
af77432da1eb
global versmap
set fin [open $src r]
set fout [open ${src}.tclkit w]
- puts $fout [string map $versmap \
- "package ifneeded vfs [package provide vfs] \[list load {} vfs\]"]
+ set script [string map [list @V [package provide vfs]] {
+ package ifneeded vfs @V "load {} vfs;\
+ source \[file join [list $dir] vfsUtils.tcl\];\
+ source \[file join [list $dir] vfslib.tcl\]"
+ }]
+ puts $fout $script
while {[gets $fin line] != -1} {
foreach pkg {starkit vfslib vfs::mk4 vfs::zip vfs::tar mk4vfs} {
if {[string match "package ifneeded $pkg *" $line]} {