D 2018-08-03T14:46:28.971
J icomment So\sit\sworks\sby\sdirect\sloading\sof\spackage\sindex...\r\nThe\squestion\sis:\swhy\sdoes\snot\swork\son\sdemand.\r\n\r\nIt\slooks\slike\ssome\smodule\stries\sto\sload\spackage\sopt\s(possibly\son\sdemand\swithin\spkgIndex/tclIndex)\sBEFORE\sauto_path\sis\sproperly\sset,\sor\sjust\ssome\ssimilar\sissue.\r\n\r\n1.\sSimple\stry\s(as\salready\ssaid\sin\smy\sfirst\scomment):\r\n<p\sstyle="margin-left:10pt;\sborder-left:1px\ssolid\sgray;\spadding-left:3pt">\r\nAlso\sto\sfind\sthe\spossible\sevil-doers\ssearch\sinside\stcl-library\sfor\s"opt\s0.1"\s(maybe\seven\swith\s"-exact"\sprefixed).\r\n</p>\r\n2.\sMore\scomplex\stry:<br/>\r\nInsert\sfollowing\scode\sinto\sbegin\sof\sinit.tcl\sand\stry\sagain\sto\sstart\sor\sdo\spackage\srequire\sopt...\r\n<code><pre\sstyle="padding-left:10pt">\r\n##\s----------------------------------------------------------------------------\r\n##\sinject\sto\strace\sall-sources:\r\nif\s{[namespace\swhich\s-command\s::_org_source]\seq\s""}\s{\r\n\s\srename\s::source\s::_org_source\r\n\s\sproc\s::source\s{args}\s{\r\n\s\s\s\s::puts\s"**\sDBG:[string\srepeat\s"\s\s"\s[info\slevel]]**\s[linsert\s$args\s0\s::source]\s**"\r\n\s\s\s\sif\s{[catch\s{\r\n\s\s\s\s\s\suplevel\s1\s[linsert\s$args\s0\s[set\sargs\s::_org_source]]\r\n\s\s\s\s}\serr\sopt]}\s{\r\n\s\s\s\s\s\s::puts\s"**\sERR:\s$::errorInfo"\r\n\s\s\s\s\s\sreturn\s{*}$opt\s$err\r\n\s\s\s\s}\r\n\s\s\s\s::puts\s"**\sDBG:[string\srepeat\s"\s\s"\s[info\slevel]]**\s\\[OK\\]\s**"\r\n\s\s}\r\n}\r\n##\s/inject\r\n##\s----------------------------------------------------------------------------\r\n</pre></code>
J login sebres
J mimetype text/x-fossil-wiki
K 6b3618ed9363e6038df3efc113093eef9a86323c
U sebres
Z 44663f176cc4f6fdfac2ce5f3f55e790