View Ticket
Ticket Hash: 1d0112d75bfbffc810301c3116ab9f5b2d89f501
Title: wapp cannot be loaded in a slave interp
Status: Fixed Type: Code_Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Fixed
Last Modified: 2019-07-31 14:24:17
Version Found In:
User Comments:
mjanssen added on 2019-07-31 08:38:57:

Currently wapp cannot be loaded in a slave interp or separate thread because there ::argv0 is not set.

interp create wapp

wapp eval {
  source ./wapp.tcl
  wapp-start {}

Fails with:

can't read "argv0": no such variable
    while executing
"file normalize $argv0"
    (procedure "wappInt-http-readable-unsafe" line 20)
    invoked from within
"wappInt-http-readable-unsafe sock7fd4a78a0290"
    invoked from within
"catch [list wappInt-http-readable-unsafe $chan] msg"