I tried to include wikit.kit inside my starkit. The tcl wiki explains
how to do that by unwrapping wikit.kit and copying 3 folders to my
starkit vfs. This works fine.
What I'm trying to do instead is including wikit.kit itself in the
starkit and source is, like this:
srouce [file join [file dirname [info script]] wikit.kit]
catch {package require Wikit} ;# wikit version error
Wikit::init myfile.tkd
When I do this I get the error:
file open filed
while executing
mk::file open mk4vfs1 c:/..../wikit.kit -readonly
...
I use tclkit 8.5. How can this be solved?
Also, given any other starkit, what is the way to re-use it in my own
starkit?
Thanks
You can't. It is a limitation of the mkfs filesystem driver that
it does not support nested archive files. [mk::file open] can
only operate on archive path names that are from [file system] => native.
> Also, given any other starkit, what is the way to re-use it in my own
> starkit?
You gave the working advice above, unpack the contents and add them to
the main archive.
Another possibility is to overload the source command to copy the kit
out to a TMP location and mount it from there before sourceing the
contents.
Could this be a tip for Starpacks ?
It is probably easier to unpack the kit and copy the files into your
VFS tree.
Martyn
I think you would want to overwrite [mk::file open] instead of [source].
DGP
That would work as well but source knows when the file has been used
and can unmount and delete the TMP file.
Martyn