Sujet : Re: how to use diagram-viewer and the diagram pkg
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tclDate : 17. Jul 2024, 12:16:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7895k$1nju1$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Am 17.07.2024 um 10:15 schrieb Andreas Leitgeb:
Mark Summerfield <mark@qtrac.eu> wrote:
$ wish9 ~/opt/tcl9/bin/diagram-viewer show /tmp/a.dia
Creating safe environment, please wait...
/home/mark/opt/tcl9/bin/diagram-viewer: can't find package diagram
$ wish9
% package require diagram
1
The "Creating safe environment, please wait..." might be the key here.
Check what the diagram viewer does after emitting that line, and see
if you can still "package require diagram" in that context.
If the "safe environment" is related to a safe interpreter,
you might need to add more code to the diagram-viewer to
allow the safe interp to load that particular package.
If I had it in my head, I'd write it - I hope someone else
can describe the extra "magic" needed to enable a package
in a safe interp.
May you identify the "pckIndex.tcl" file of the package and post it here?
It may contain code to exclude TCL9...
Take care,
Harald