2009/12/11 Zbigniew Diaczyszyn <
z....@gmx.de>:
I will point out here that applications are not packages. This
business of generating app-ApplicationName packages used by the qwrap
subcommand of sdx is not a good example to follow.
It makes more sense to structure your application files in one subtree
and put real packages under the lib tree.
I recommend
app.vfs/
bin/
application.tcl
<app files>
lib/
<library packages>
and the use of a main.tcl at the toplevel that looks more like:
package require starkit
if {[starkit::startup] ne "sourced"} {
source [file join $starkit::topdir bin application.tcl]
}
This will load your application whether you run a starkit, starpack or
run the application in-place with tclkit app.vfs/main.tcl
It also permits you to source the kit into an editor which some people
find useful.
I hate how qwrap does this.
Pat Thoyts