@simplexai/localmodels-darwin-arm64 0.1.0-dev.31.build.gitb5579b4b26f273bf03468c6aedf61b327fa6c245 → 0.1.0-dev.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (583) hide show
  1. package/bootstrap.identity +1 -1
  2. package/bootstrap.sha256 +10 -582
  3. package/modules/localmodels/__init__.py +1 -1
  4. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/METADATA +1 -1
  5. package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/RECORD +7 -7
  6. package/package.json +1 -1
  7. package/tool.json +1 -1
  8. package/python/bin/2to3 +0 -7
  9. package/python/bin/2to3-3.12 +0 -7
  10. package/python/bin/idle3 +0 -7
  11. package/python/bin/idle3.12 +0 -7
  12. package/python/bin/pip +0 -8
  13. package/python/bin/pip3 +0 -8
  14. package/python/bin/pip3.12 +0 -8
  15. package/python/bin/pydoc3 +0 -7
  16. package/python/bin/pydoc3.12 +0 -7
  17. package/python/bin/python +0 -0
  18. package/python/bin/python3 +0 -0
  19. package/python/bin/python3-config +0 -76
  20. package/python/bin/python3.12-config +0 -76
  21. package/python/include/python3.12/Python.h +0 -109
  22. package/python/include/python3.12/abstract.h +0 -899
  23. package/python/include/python3.12/bltinmodule.h +0 -14
  24. package/python/include/python3.12/boolobject.h +0 -42
  25. package/python/include/python3.12/bytearrayobject.h +0 -44
  26. package/python/include/python3.12/bytesobject.h +0 -69
  27. package/python/include/python3.12/ceval.h +0 -168
  28. package/python/include/python3.12/codecs.h +0 -248
  29. package/python/include/python3.12/compile.h +0 -22
  30. package/python/include/python3.12/complexobject.h +0 -30
  31. package/python/include/python3.12/cpython/abstract.h +0 -206
  32. package/python/include/python3.12/cpython/bytearrayobject.h +0 -34
  33. package/python/include/python3.12/cpython/bytesobject.h +0 -133
  34. package/python/include/python3.12/cpython/cellobject.h +0 -44
  35. package/python/include/python3.12/cpython/ceval.h +0 -35
  36. package/python/include/python3.12/cpython/classobject.h +0 -71
  37. package/python/include/python3.12/cpython/code.h +0 -389
  38. package/python/include/python3.12/cpython/compile.h +0 -69
  39. package/python/include/python3.12/cpython/complexobject.h +0 -44
  40. package/python/include/python3.12/cpython/context.h +0 -78
  41. package/python/include/python3.12/cpython/descrobject.h +0 -64
  42. package/python/include/python3.12/cpython/dictobject.h +0 -118
  43. package/python/include/python3.12/cpython/fileobject.h +0 -19
  44. package/python/include/python3.12/cpython/fileutils.h +0 -8
  45. package/python/include/python3.12/cpython/floatobject.h +0 -27
  46. package/python/include/python3.12/cpython/frameobject.h +0 -29
  47. package/python/include/python3.12/cpython/funcobject.h +0 -190
  48. package/python/include/python3.12/cpython/genobject.h +0 -89
  49. package/python/include/python3.12/cpython/import.h +0 -46
  50. package/python/include/python3.12/cpython/initconfig.h +0 -256
  51. package/python/include/python3.12/cpython/interpreteridobject.h +0 -11
  52. package/python/include/python3.12/cpython/listobject.h +0 -47
  53. package/python/include/python3.12/cpython/longintrepr.h +0 -133
  54. package/python/include/python3.12/cpython/longobject.h +0 -100
  55. package/python/include/python3.12/cpython/memoryobject.h +0 -52
  56. package/python/include/python3.12/cpython/methodobject.h +0 -66
  57. package/python/include/python3.12/cpython/modsupport.h +0 -109
  58. package/python/include/python3.12/cpython/object.h +0 -575
  59. package/python/include/python3.12/cpython/objimpl.h +0 -95
  60. package/python/include/python3.12/cpython/odictobject.h +0 -43
  61. package/python/include/python3.12/cpython/picklebufobject.h +0 -31
  62. package/python/include/python3.12/cpython/pthread_stubs.h +0 -88
  63. package/python/include/python3.12/cpython/pyctype.h +0 -39
  64. package/python/include/python3.12/cpython/pydebug.h +0 -38
  65. package/python/include/python3.12/cpython/pyerrors.h +0 -178
  66. package/python/include/python3.12/cpython/pyfpe.h +0 -15
  67. package/python/include/python3.12/cpython/pyframe.h +0 -35
  68. package/python/include/python3.12/cpython/pylifecycle.h +0 -111
  69. package/python/include/python3.12/cpython/pymem.h +0 -98
  70. package/python/include/python3.12/cpython/pystate.h +0 -456
  71. package/python/include/python3.12/cpython/pythonrun.h +0 -121
  72. package/python/include/python3.12/cpython/pythread.h +0 -42
  73. package/python/include/python3.12/cpython/pytime.h +0 -331
  74. package/python/include/python3.12/cpython/setobject.h +0 -72
  75. package/python/include/python3.12/cpython/sysmodule.h +0 -16
  76. package/python/include/python3.12/cpython/traceback.h +0 -16
  77. package/python/include/python3.12/cpython/tupleobject.h +0 -39
  78. package/python/include/python3.12/cpython/unicodeobject.h +0 -976
  79. package/python/include/python3.12/cpython/warnings.h +0 -20
  80. package/python/include/python3.12/cpython/weakrefobject.h +0 -56
  81. package/python/include/python3.12/datetime.h +0 -267
  82. package/python/include/python3.12/descrobject.h +0 -100
  83. package/python/include/python3.12/dictobject.h +0 -97
  84. package/python/include/python3.12/dynamic_annotations.h +0 -499
  85. package/python/include/python3.12/enumobject.h +0 -17
  86. package/python/include/python3.12/errcode.h +0 -38
  87. package/python/include/python3.12/exports.h +0 -36
  88. package/python/include/python3.12/fileobject.h +0 -49
  89. package/python/include/python3.12/fileutils.h +0 -26
  90. package/python/include/python3.12/floatobject.h +0 -54
  91. package/python/include/python3.12/frameobject.h +0 -20
  92. package/python/include/python3.12/genericaliasobject.h +0 -14
  93. package/python/include/python3.12/import.h +0 -98
  94. package/python/include/python3.12/internal/pycore_abstract.h +0 -25
  95. package/python/include/python3.12/internal/pycore_asdl.h +0 -112
  96. package/python/include/python3.12/internal/pycore_ast.h +0 -922
  97. package/python/include/python3.12/internal/pycore_ast_state.h +0 -265
  98. package/python/include/python3.12/internal/pycore_atexit.h +0 -57
  99. package/python/include/python3.12/internal/pycore_atomic.h +0 -557
  100. package/python/include/python3.12/internal/pycore_atomic_funcs.h +0 -94
  101. package/python/include/python3.12/internal/pycore_bitutils.h +0 -186
  102. package/python/include/python3.12/internal/pycore_blocks_output_buffer.h +0 -317
  103. package/python/include/python3.12/internal/pycore_bytes_methods.h +0 -73
  104. package/python/include/python3.12/internal/pycore_bytesobject.h +0 -47
  105. package/python/include/python3.12/internal/pycore_call.h +0 -133
  106. package/python/include/python3.12/internal/pycore_ceval.h +0 -164
  107. package/python/include/python3.12/internal/pycore_ceval_state.h +0 -103
  108. package/python/include/python3.12/internal/pycore_code.h +0 -496
  109. package/python/include/python3.12/internal/pycore_compile.h +0 -118
  110. package/python/include/python3.12/internal/pycore_condvar.h +0 -99
  111. package/python/include/python3.12/internal/pycore_context.h +0 -71
  112. package/python/include/python3.12/internal/pycore_descrobject.h +0 -26
  113. package/python/include/python3.12/internal/pycore_dict.h +0 -199
  114. package/python/include/python3.12/internal/pycore_dict_state.h +0 -50
  115. package/python/include/python3.12/internal/pycore_dtoa.h +0 -69
  116. package/python/include/python3.12/internal/pycore_emscripten_signal.h +0 -25
  117. package/python/include/python3.12/internal/pycore_exceptions.h +0 -37
  118. package/python/include/python3.12/internal/pycore_faulthandler.h +0 -99
  119. package/python/include/python3.12/internal/pycore_fileutils.h +0 -292
  120. package/python/include/python3.12/internal/pycore_fileutils_windows.h +0 -98
  121. package/python/include/python3.12/internal/pycore_floatobject.h +0 -71
  122. package/python/include/python3.12/internal/pycore_flowgraph.h +0 -120
  123. package/python/include/python3.12/internal/pycore_format.h +0 -27
  124. package/python/include/python3.12/internal/pycore_frame.h +0 -283
  125. package/python/include/python3.12/internal/pycore_function.h +0 -26
  126. package/python/include/python3.12/internal/pycore_gc.h +0 -211
  127. package/python/include/python3.12/internal/pycore_genobject.h +0 -49
  128. package/python/include/python3.12/internal/pycore_getopt.h +0 -22
  129. package/python/include/python3.12/internal/pycore_gil.h +0 -50
  130. package/python/include/python3.12/internal/pycore_global_objects.h +0 -105
  131. package/python/include/python3.12/internal/pycore_global_objects_fini_generated.h +0 -1517
  132. package/python/include/python3.12/internal/pycore_global_strings.h +0 -777
  133. package/python/include/python3.12/internal/pycore_hamt.h +0 -134
  134. package/python/include/python3.12/internal/pycore_hashtable.h +0 -149
  135. package/python/include/python3.12/internal/pycore_import.h +0 -183
  136. package/python/include/python3.12/internal/pycore_initconfig.h +0 -179
  137. package/python/include/python3.12/internal/pycore_instruments.h +0 -106
  138. package/python/include/python3.12/internal/pycore_interp.h +0 -275
  139. package/python/include/python3.12/internal/pycore_intrinsics.h +0 -32
  140. package/python/include/python3.12/internal/pycore_list.h +0 -83
  141. package/python/include/python3.12/internal/pycore_long.h +0 -258
  142. package/python/include/python3.12/internal/pycore_memoryobject.h +0 -18
  143. package/python/include/python3.12/internal/pycore_moduleobject.h +0 -45
  144. package/python/include/python3.12/internal/pycore_namespace.h +0 -20
  145. package/python/include/python3.12/internal/pycore_object.h +0 -455
  146. package/python/include/python3.12/internal/pycore_object_state.h +0 -42
  147. package/python/include/python3.12/internal/pycore_obmalloc.h +0 -700
  148. package/python/include/python3.12/internal/pycore_obmalloc_init.h +0 -73
  149. package/python/include/python3.12/internal/pycore_opcode.h +0 -587
  150. package/python/include/python3.12/internal/pycore_opcode_utils.h +0 -92
  151. package/python/include/python3.12/internal/pycore_parser.h +0 -66
  152. package/python/include/python3.12/internal/pycore_pathconfig.h +0 -24
  153. package/python/include/python3.12/internal/pycore_pyarena.h +0 -64
  154. package/python/include/python3.12/internal/pycore_pyerrors.h +0 -129
  155. package/python/include/python3.12/internal/pycore_pyhash.h +0 -40
  156. package/python/include/python3.12/internal/pycore_pylifecycle.h +0 -99
  157. package/python/include/python3.12/internal/pycore_pymath.h +0 -205
  158. package/python/include/python3.12/internal/pycore_pymem.h +0 -98
  159. package/python/include/python3.12/internal/pycore_pymem_init.h +0 -85
  160. package/python/include/python3.12/internal/pycore_pystate.h +0 -180
  161. package/python/include/python3.12/internal/pycore_pythread.h +0 -81
  162. package/python/include/python3.12/internal/pycore_range.h +0 -21
  163. package/python/include/python3.12/internal/pycore_runtime.h +0 -235
  164. package/python/include/python3.12/internal/pycore_runtime_init.h +0 -188
  165. package/python/include/python3.12/internal/pycore_runtime_init_generated.h +0 -1511
  166. package/python/include/python3.12/internal/pycore_signal.h +0 -98
  167. package/python/include/python3.12/internal/pycore_sliceobject.h +0 -22
  168. package/python/include/python3.12/internal/pycore_strhex.h +0 -36
  169. package/python/include/python3.12/internal/pycore_structseq.h +0 -39
  170. package/python/include/python3.12/internal/pycore_symtable.h +0 -160
  171. package/python/include/python3.12/internal/pycore_sysmodule.h +0 -34
  172. package/python/include/python3.12/internal/pycore_time.h +0 -25
  173. package/python/include/python3.12/internal/pycore_token.h +0 -108
  174. package/python/include/python3.12/internal/pycore_traceback.h +0 -101
  175. package/python/include/python3.12/internal/pycore_tracemalloc.h +0 -123
  176. package/python/include/python3.12/internal/pycore_tuple.h +0 -79
  177. package/python/include/python3.12/internal/pycore_typeobject.h +0 -151
  178. package/python/include/python3.12/internal/pycore_typevarobject.h +0 -24
  179. package/python/include/python3.12/internal/pycore_ucnhash.h +0 -34
  180. package/python/include/python3.12/internal/pycore_unicodeobject.h +0 -86
  181. package/python/include/python3.12/internal/pycore_unicodeobject_generated.h +0 -2832
  182. package/python/include/python3.12/internal/pycore_unionobject.h +0 -23
  183. package/python/include/python3.12/internal/pycore_warnings.h +0 -29
  184. package/python/include/python3.12/interpreteridobject.h +0 -17
  185. package/python/include/python3.12/intrcheck.h +0 -30
  186. package/python/include/python3.12/iterobject.h +0 -27
  187. package/python/include/python3.12/listobject.h +0 -52
  188. package/python/include/python3.12/longobject.h +0 -108
  189. package/python/include/python3.12/marshal.h +0 -31
  190. package/python/include/python3.12/memoryobject.h +0 -34
  191. package/python/include/python3.12/methodobject.h +0 -132
  192. package/python/include/python3.12/modsupport.h +0 -168
  193. package/python/include/python3.12/moduleobject.h +0 -119
  194. package/python/include/python3.12/object.h +0 -993
  195. package/python/include/python3.12/objimpl.h +0 -234
  196. package/python/include/python3.12/opcode.h +0 -271
  197. package/python/include/python3.12/osdefs.h +0 -51
  198. package/python/include/python3.12/osmodule.h +0 -17
  199. package/python/include/python3.12/patchlevel.h +0 -35
  200. package/python/include/python3.12/py_curses.h +0 -99
  201. package/python/include/python3.12/pybuffer.h +0 -145
  202. package/python/include/python3.12/pycapsule.h +0 -59
  203. package/python/include/python3.12/pyconfig.h +0 -1943
  204. package/python/include/python3.12/pydtrace.h +0 -59
  205. package/python/include/python3.12/pyerrors.h +0 -337
  206. package/python/include/python3.12/pyexpat.h +0 -70
  207. package/python/include/python3.12/pyframe.h +0 -26
  208. package/python/include/python3.12/pyhash.h +0 -146
  209. package/python/include/python3.12/pylifecycle.h +0 -78
  210. package/python/include/python3.12/pymacconfig.h +0 -99
  211. package/python/include/python3.12/pymacro.h +0 -172
  212. package/python/include/python3.12/pymath.h +0 -62
  213. package/python/include/python3.12/pymem.h +0 -104
  214. package/python/include/python3.12/pyport.h +0 -782
  215. package/python/include/python3.12/pystate.h +0 -132
  216. package/python/include/python3.12/pystats.h +0 -110
  217. package/python/include/python3.12/pystrcmp.h +0 -23
  218. package/python/include/python3.12/pystrtod.h +0 -46
  219. package/python/include/python3.12/pythonrun.h +0 -49
  220. package/python/include/python3.12/pythread.h +0 -135
  221. package/python/include/python3.12/pytypedefs.h +0 -30
  222. package/python/include/python3.12/rangeobject.h +0 -27
  223. package/python/include/python3.12/setobject.h +0 -49
  224. package/python/include/python3.12/sliceobject.h +0 -65
  225. package/python/include/python3.12/structmember.h +0 -56
  226. package/python/include/python3.12/structseq.h +0 -49
  227. package/python/include/python3.12/sysmodule.h +0 -54
  228. package/python/include/python3.12/traceback.h +0 -26
  229. package/python/include/python3.12/tracemalloc.h +0 -77
  230. package/python/include/python3.12/tupleobject.h +0 -46
  231. package/python/include/python3.12/typeslots.h +0 -88
  232. package/python/include/python3.12/unicodeobject.h +0 -1020
  233. package/python/include/python3.12/warnings.h +0 -45
  234. package/python/include/python3.12/weakrefobject.h +0 -42
  235. package/python/lib/itcl4.3.8/itcl.tcl +0 -151
  236. package/python/lib/itcl4.3.8/itclConfig.sh +0 -67
  237. package/python/lib/itcl4.3.8/itclHullCmds.tcl +0 -562
  238. package/python/lib/itcl4.3.8/itclWidget.tcl +0 -447
  239. package/python/lib/itcl4.3.8/libitcl4.3.8.dylib +0 -0
  240. package/python/lib/itcl4.3.8/libitclstub.a +0 -0
  241. package/python/lib/itcl4.3.8/libitclstub4.3.8.a +0 -0
  242. package/python/lib/itcl4.3.8/libtcl9itcl4.3.8.dylib +0 -0
  243. package/python/lib/itcl4.3.8/pkgIndex.tcl +0 -14
  244. package/python/lib/libpython3.12.dylib +0 -0
  245. package/python/lib/libtcl9.0.dylib +0 -0
  246. package/python/lib/libtcl9tk9.0.dylib +0 -0
  247. package/python/lib/pkgconfig/python-3.12-embed.pc +0 -13
  248. package/python/lib/pkgconfig/python-3.12.pc +0 -13
  249. package/python/lib/pkgconfig/python3-embed.pc +0 -13
  250. package/python/lib/pkgconfig/python3.pc +0 -13
  251. package/python/lib/python3.12/config-3.12-darwin/Makefile +0 -3273
  252. package/python/lib/python3.12/config-3.12-darwin/Setup +0 -303
  253. package/python/lib/python3.12/config-3.12-darwin/Setup.bootstrap +0 -36
  254. package/python/lib/python3.12/config-3.12-darwin/Setup.local +0 -19
  255. package/python/lib/python3.12/config-3.12-darwin/Setup.stdlib +0 -183
  256. package/python/lib/python3.12/config-3.12-darwin/config.c +0 -246
  257. package/python/lib/python3.12/config-3.12-darwin/config.c.in +0 -71
  258. package/python/lib/python3.12/config-3.12-darwin/install-sh +0 -541
  259. package/python/lib/python3.12/config-3.12-darwin/makesetup +0 -353
  260. package/python/lib/python3.12/config-3.12-darwin/python-config.py +0 -76
  261. package/python/lib/python3.12/config-3.12-darwin/python.o +0 -0
  262. package/python/lib/python3.12/idlelib/CREDITS.txt +0 -47
  263. package/python/lib/python3.12/idlelib/ChangeLog +0 -1591
  264. package/python/lib/python3.12/idlelib/HISTORY.txt +0 -296
  265. package/python/lib/python3.12/idlelib/Icons/README.txt +0 -51
  266. package/python/lib/python3.12/idlelib/Icons/folder.gif +0 -0
  267. package/python/lib/python3.12/idlelib/Icons/idle.ico +0 -0
  268. package/python/lib/python3.12/idlelib/Icons/idle_16.gif +0 -0
  269. package/python/lib/python3.12/idlelib/Icons/idle_16.png +0 -0
  270. package/python/lib/python3.12/idlelib/Icons/idle_256.png +0 -0
  271. package/python/lib/python3.12/idlelib/Icons/idle_32.gif +0 -0
  272. package/python/lib/python3.12/idlelib/Icons/idle_32.png +0 -0
  273. package/python/lib/python3.12/idlelib/Icons/idle_48.gif +0 -0
  274. package/python/lib/python3.12/idlelib/Icons/idle_48.png +0 -0
  275. package/python/lib/python3.12/idlelib/Icons/minusnode.gif +0 -0
  276. package/python/lib/python3.12/idlelib/Icons/openfolder.gif +0 -0
  277. package/python/lib/python3.12/idlelib/Icons/plusnode.gif +0 -0
  278. package/python/lib/python3.12/idlelib/Icons/python.gif +0 -0
  279. package/python/lib/python3.12/idlelib/Icons/tk.gif +0 -0
  280. package/python/lib/python3.12/idlelib/NEWS2x.txt +0 -660
  281. package/python/lib/python3.12/idlelib/News3.txt +0 -1390
  282. package/python/lib/python3.12/idlelib/README.txt +0 -290
  283. package/python/lib/python3.12/idlelib/TODO.txt +0 -210
  284. package/python/lib/python3.12/idlelib/__init__.py +0 -10
  285. package/python/lib/python3.12/idlelib/__main__.py +0 -7
  286. package/python/lib/python3.12/idlelib/autocomplete.py +0 -228
  287. package/python/lib/python3.12/idlelib/autocomplete_w.py +0 -498
  288. package/python/lib/python3.12/idlelib/autoexpand.py +0 -96
  289. package/python/lib/python3.12/idlelib/browser.py +0 -260
  290. package/python/lib/python3.12/idlelib/calltip.py +0 -205
  291. package/python/lib/python3.12/idlelib/calltip_w.py +0 -202
  292. package/python/lib/python3.12/idlelib/codecontext.py +0 -270
  293. package/python/lib/python3.12/idlelib/colorizer.py +0 -384
  294. package/python/lib/python3.12/idlelib/config-extensions.def +0 -62
  295. package/python/lib/python3.12/idlelib/config-highlight.def +0 -105
  296. package/python/lib/python3.12/idlelib/config-keys.def +0 -309
  297. package/python/lib/python3.12/idlelib/config-main.def +0 -93
  298. package/python/lib/python3.12/idlelib/config.py +0 -917
  299. package/python/lib/python3.12/idlelib/config_key.py +0 -354
  300. package/python/lib/python3.12/idlelib/configdialog.py +0 -2408
  301. package/python/lib/python3.12/idlelib/debugger.py +0 -602
  302. package/python/lib/python3.12/idlelib/debugger_r.py +0 -390
  303. package/python/lib/python3.12/idlelib/debugobj.py +0 -146
  304. package/python/lib/python3.12/idlelib/debugobj_r.py +0 -41
  305. package/python/lib/python3.12/idlelib/delegator.py +0 -34
  306. package/python/lib/python3.12/idlelib/dynoption.py +0 -57
  307. package/python/lib/python3.12/idlelib/editor.py +0 -1767
  308. package/python/lib/python3.12/idlelib/extend.txt +0 -83
  309. package/python/lib/python3.12/idlelib/filelist.py +0 -132
  310. package/python/lib/python3.12/idlelib/format.py +0 -426
  311. package/python/lib/python3.12/idlelib/grep.py +0 -223
  312. package/python/lib/python3.12/idlelib/help.html +0 -805
  313. package/python/lib/python3.12/idlelib/help.py +0 -297
  314. package/python/lib/python3.12/idlelib/help_about.py +0 -211
  315. package/python/lib/python3.12/idlelib/history.py +0 -106
  316. package/python/lib/python3.12/idlelib/hyperparser.py +0 -312
  317. package/python/lib/python3.12/idlelib/idle.bat +0 -4
  318. package/python/lib/python3.12/idlelib/idle.py +0 -14
  319. package/python/lib/python3.12/idlelib/idle.pyw +0 -17
  320. package/python/lib/python3.12/idlelib/iomenu.py +0 -441
  321. package/python/lib/python3.12/idlelib/macosx.py +0 -278
  322. package/python/lib/python3.12/idlelib/mainmenu.py +0 -126
  323. package/python/lib/python3.12/idlelib/multicall.py +0 -451
  324. package/python/lib/python3.12/idlelib/outwin.py +0 -188
  325. package/python/lib/python3.12/idlelib/parenmatch.py +0 -183
  326. package/python/lib/python3.12/idlelib/pathbrowser.py +0 -107
  327. package/python/lib/python3.12/idlelib/percolator.py +0 -120
  328. package/python/lib/python3.12/idlelib/pyparse.py +0 -589
  329. package/python/lib/python3.12/idlelib/pyshell.py +0 -1694
  330. package/python/lib/python3.12/idlelib/query.py +0 -392
  331. package/python/lib/python3.12/idlelib/redirector.py +0 -173
  332. package/python/lib/python3.12/idlelib/replace.py +0 -300
  333. package/python/lib/python3.12/idlelib/rpc.py +0 -635
  334. package/python/lib/python3.12/idlelib/run.py +0 -646
  335. package/python/lib/python3.12/idlelib/runscript.py +0 -213
  336. package/python/lib/python3.12/idlelib/scrolledlist.py +0 -151
  337. package/python/lib/python3.12/idlelib/search.py +0 -165
  338. package/python/lib/python3.12/idlelib/searchbase.py +0 -210
  339. package/python/lib/python3.12/idlelib/searchengine.py +0 -235
  340. package/python/lib/python3.12/idlelib/sidebar.py +0 -544
  341. package/python/lib/python3.12/idlelib/squeezer.py +0 -345
  342. package/python/lib/python3.12/idlelib/stackviewer.py +0 -134
  343. package/python/lib/python3.12/idlelib/statusbar.py +0 -52
  344. package/python/lib/python3.12/idlelib/textview.py +0 -193
  345. package/python/lib/python3.12/idlelib/tooltip.py +0 -190
  346. package/python/lib/python3.12/idlelib/tree.py +0 -509
  347. package/python/lib/python3.12/idlelib/undo.py +0 -367
  348. package/python/lib/python3.12/idlelib/util.py +0 -37
  349. package/python/lib/python3.12/idlelib/window.py +0 -98
  350. package/python/lib/python3.12/idlelib/zoomheight.py +0 -124
  351. package/python/lib/python3.12/idlelib/zzdummy.py +0 -73
  352. package/python/lib/python3.12/lib-dynload/_tkinter.cpython-312-darwin.so +0 -0
  353. package/python/lib/python3.12/tkinter/__init__.py +0 -4682
  354. package/python/lib/python3.12/tkinter/__main__.py +0 -7
  355. package/python/lib/python3.12/tkinter/colorchooser.py +0 -86
  356. package/python/lib/python3.12/tkinter/commondialog.py +0 -53
  357. package/python/lib/python3.12/tkinter/constants.py +0 -110
  358. package/python/lib/python3.12/tkinter/dialog.py +0 -49
  359. package/python/lib/python3.12/tkinter/dnd.py +0 -324
  360. package/python/lib/python3.12/tkinter/filedialog.py +0 -492
  361. package/python/lib/python3.12/tkinter/font.py +0 -239
  362. package/python/lib/python3.12/tkinter/messagebox.py +0 -146
  363. package/python/lib/python3.12/tkinter/scrolledtext.py +0 -56
  364. package/python/lib/python3.12/tkinter/simpledialog.py +0 -441
  365. package/python/lib/python3.12/tkinter/tix.py +0 -1948
  366. package/python/lib/python3.12/tkinter/ttk.py +0 -1640
  367. package/python/lib/python3.12/turtle.py +0 -4207
  368. package/python/lib/python3.12/turtledemo/__init__.py +0 -14
  369. package/python/lib/python3.12/turtledemo/__main__.py +0 -404
  370. package/python/lib/python3.12/turtledemo/bytedesign.py +0 -161
  371. package/python/lib/python3.12/turtledemo/chaos.py +0 -59
  372. package/python/lib/python3.12/turtledemo/clock.py +0 -138
  373. package/python/lib/python3.12/turtledemo/colormixer.py +0 -58
  374. package/python/lib/python3.12/turtledemo/forest.py +0 -108
  375. package/python/lib/python3.12/turtledemo/fractalcurves.py +0 -138
  376. package/python/lib/python3.12/turtledemo/lindenmayer.py +0 -119
  377. package/python/lib/python3.12/turtledemo/minimal_hanoi.py +0 -79
  378. package/python/lib/python3.12/turtledemo/nim.py +0 -226
  379. package/python/lib/python3.12/turtledemo/paint.py +0 -54
  380. package/python/lib/python3.12/turtledemo/peace.py +0 -61
  381. package/python/lib/python3.12/turtledemo/penrose.py +0 -175
  382. package/python/lib/python3.12/turtledemo/planet_and_moon.py +0 -111
  383. package/python/lib/python3.12/turtledemo/rosette.py +0 -65
  384. package/python/lib/python3.12/turtledemo/round_dance.py +0 -86
  385. package/python/lib/python3.12/turtledemo/sorting_animate.py +0 -204
  386. package/python/lib/python3.12/turtledemo/tree.py +0 -62
  387. package/python/lib/python3.12/turtledemo/turtle.cfg +0 -10
  388. package/python/lib/python3.12/turtledemo/two_canvases.py +0 -54
  389. package/python/lib/python3.12/turtledemo/yinyang.py +0 -49
  390. package/python/lib/tcl9/9.0/http-2.10.2.tm +0 -5451
  391. package/python/lib/tcl9/9.0/msgcat-1.7.1.tm +0 -1349
  392. package/python/lib/tcl9/9.0/platform/shell-1.1.4.tm +0 -241
  393. package/python/lib/tcl9/9.0/platform-1.1.0.tm +0 -442
  394. package/python/lib/tcl9/9.0/tcltest-2.5.11.tm +0 -3600
  395. package/python/lib/tcl9.0/auto.tcl +0 -710
  396. package/python/lib/tcl9.0/clock.tcl +0 -2110
  397. package/python/lib/tcl9.0/cookiejar0.2/cookiejar.tcl +0 -746
  398. package/python/lib/tcl9.0/cookiejar0.2/idna.tcl +0 -292
  399. package/python/lib/tcl9.0/cookiejar0.2/pkgIndex.tcl +0 -3
  400. package/python/lib/tcl9.0/cookiejar0.2/public_suffix_list.dat.gz +0 -0
  401. package/python/lib/tcl9.0/encoding/ascii.enc +0 -20
  402. package/python/lib/tcl9.0/encoding/big5.enc +0 -1516
  403. package/python/lib/tcl9.0/encoding/cns11643.enc +0 -1584
  404. package/python/lib/tcl9.0/encoding/cp1250.enc +0 -20
  405. package/python/lib/tcl9.0/encoding/cp1251.enc +0 -20
  406. package/python/lib/tcl9.0/encoding/cp1252.enc +0 -20
  407. package/python/lib/tcl9.0/encoding/cp1253.enc +0 -20
  408. package/python/lib/tcl9.0/encoding/cp1254.enc +0 -20
  409. package/python/lib/tcl9.0/encoding/cp1255.enc +0 -20
  410. package/python/lib/tcl9.0/encoding/cp1256.enc +0 -20
  411. package/python/lib/tcl9.0/encoding/cp1257.enc +0 -20
  412. package/python/lib/tcl9.0/encoding/cp1258.enc +0 -20
  413. package/python/lib/tcl9.0/encoding/cp165.enc +0 -20
  414. package/python/lib/tcl9.0/encoding/cp437.enc +0 -20
  415. package/python/lib/tcl9.0/encoding/cp737.enc +0 -20
  416. package/python/lib/tcl9.0/encoding/cp775.enc +0 -20
  417. package/python/lib/tcl9.0/encoding/cp850.enc +0 -20
  418. package/python/lib/tcl9.0/encoding/cp852.enc +0 -20
  419. package/python/lib/tcl9.0/encoding/cp855.enc +0 -20
  420. package/python/lib/tcl9.0/encoding/cp857.enc +0 -20
  421. package/python/lib/tcl9.0/encoding/cp860.enc +0 -20
  422. package/python/lib/tcl9.0/encoding/cp861.enc +0 -20
  423. package/python/lib/tcl9.0/encoding/cp862.enc +0 -20
  424. package/python/lib/tcl9.0/encoding/cp863.enc +0 -20
  425. package/python/lib/tcl9.0/encoding/cp864.enc +0 -20
  426. package/python/lib/tcl9.0/encoding/cp865.enc +0 -20
  427. package/python/lib/tcl9.0/encoding/cp866.enc +0 -20
  428. package/python/lib/tcl9.0/encoding/cp869.enc +0 -20
  429. package/python/lib/tcl9.0/encoding/cp874.enc +0 -20
  430. package/python/lib/tcl9.0/encoding/cp932.enc +0 -801
  431. package/python/lib/tcl9.0/encoding/cp936.enc +0 -2162
  432. package/python/lib/tcl9.0/encoding/cp949.enc +0 -2128
  433. package/python/lib/tcl9.0/encoding/cp950.enc +0 -1499
  434. package/python/lib/tcl9.0/encoding/dingbats.enc +0 -20
  435. package/python/lib/tcl9.0/encoding/ebcdic.enc +0 -20
  436. package/python/lib/tcl9.0/encoding/euc-cn.enc +0 -1397
  437. package/python/lib/tcl9.0/encoding/euc-jp.enc +0 -1353
  438. package/python/lib/tcl9.0/encoding/euc-kr.enc +0 -1533
  439. package/python/lib/tcl9.0/encoding/gb12345.enc +0 -1414
  440. package/python/lib/tcl9.0/encoding/gb1988.enc +0 -20
  441. package/python/lib/tcl9.0/encoding/gb2312-raw.enc +0 -1380
  442. package/python/lib/tcl9.0/encoding/gb2312.enc +0 -1397
  443. package/python/lib/tcl9.0/encoding/iso2022-jp.enc +0 -12
  444. package/python/lib/tcl9.0/encoding/iso2022-kr.enc +0 -7
  445. package/python/lib/tcl9.0/encoding/iso2022.enc +0 -14
  446. package/python/lib/tcl9.0/encoding/iso8859-1.enc +0 -20
  447. package/python/lib/tcl9.0/encoding/iso8859-10.enc +0 -20
  448. package/python/lib/tcl9.0/encoding/iso8859-11.enc +0 -20
  449. package/python/lib/tcl9.0/encoding/iso8859-13.enc +0 -20
  450. package/python/lib/tcl9.0/encoding/iso8859-14.enc +0 -20
  451. package/python/lib/tcl9.0/encoding/iso8859-15.enc +0 -20
  452. package/python/lib/tcl9.0/encoding/iso8859-16.enc +0 -20
  453. package/python/lib/tcl9.0/encoding/iso8859-2.enc +0 -20
  454. package/python/lib/tcl9.0/encoding/iso8859-3.enc +0 -20
  455. package/python/lib/tcl9.0/encoding/iso8859-4.enc +0 -20
  456. package/python/lib/tcl9.0/encoding/iso8859-5.enc +0 -20
  457. package/python/lib/tcl9.0/encoding/iso8859-6.enc +0 -20
  458. package/python/lib/tcl9.0/encoding/iso8859-7.enc +0 -20
  459. package/python/lib/tcl9.0/encoding/iso8859-8.enc +0 -20
  460. package/python/lib/tcl9.0/encoding/iso8859-9.enc +0 -20
  461. package/python/lib/tcl9.0/encoding/jis0201.enc +0 -20
  462. package/python/lib/tcl9.0/encoding/jis0208.enc +0 -1319
  463. package/python/lib/tcl9.0/encoding/jis0212.enc +0 -1159
  464. package/python/lib/tcl9.0/encoding/koi8-r.enc +0 -20
  465. package/python/lib/tcl9.0/encoding/koi8-ru.enc +0 -20
  466. package/python/lib/tcl9.0/encoding/koi8-t.enc +0 -20
  467. package/python/lib/tcl9.0/encoding/koi8-u.enc +0 -20
  468. package/python/lib/tcl9.0/encoding/ksc5601.enc +0 -1516
  469. package/python/lib/tcl9.0/encoding/macCentEuro.enc +0 -20
  470. package/python/lib/tcl9.0/encoding/macCroatian.enc +0 -20
  471. package/python/lib/tcl9.0/encoding/macCyrillic.enc +0 -20
  472. package/python/lib/tcl9.0/encoding/macDingbats.enc +0 -20
  473. package/python/lib/tcl9.0/encoding/macGreek.enc +0 -20
  474. package/python/lib/tcl9.0/encoding/macIceland.enc +0 -20
  475. package/python/lib/tcl9.0/encoding/macJapan.enc +0 -785
  476. package/python/lib/tcl9.0/encoding/macRoman.enc +0 -20
  477. package/python/lib/tcl9.0/encoding/macRomania.enc +0 -20
  478. package/python/lib/tcl9.0/encoding/macThai.enc +0 -20
  479. package/python/lib/tcl9.0/encoding/macTurkish.enc +0 -20
  480. package/python/lib/tcl9.0/encoding/macUkraine.enc +0 -20
  481. package/python/lib/tcl9.0/encoding/shiftjis.enc +0 -690
  482. package/python/lib/tcl9.0/encoding/symbol.enc +0 -20
  483. package/python/lib/tcl9.0/encoding/tis-620.enc +0 -20
  484. package/python/lib/tcl9.0/foreachline.tcl +0 -25
  485. package/python/lib/tcl9.0/history.tcl +0 -335
  486. package/python/lib/tcl9.0/icu.tcl +0 -145
  487. package/python/lib/tcl9.0/init.tcl +0 -772
  488. package/python/lib/tcl9.0/install.tcl +0 -274
  489. package/python/lib/tcl9.0/opt0.4/optparse.tcl +0 -1060
  490. package/python/lib/tcl9.0/opt0.4/pkgIndex.tcl +0 -12
  491. package/python/lib/tcl9.0/package.tcl +0 -776
  492. package/python/lib/tcl9.0/parray.tcl +0 -28
  493. package/python/lib/tcl9.0/readfile.tcl +0 -23
  494. package/python/lib/tcl9.0/safe.tcl +0 -1459
  495. package/python/lib/tcl9.0/tclAppInit.c +0 -183
  496. package/python/lib/tcl9.0/tclIndex +0 -112
  497. package/python/lib/tcl9.0/tm.tcl +0 -378
  498. package/python/lib/tcl9.0/word.tcl +0 -155
  499. package/python/lib/tcl9.0/writefile.tcl +0 -37
  500. package/python/lib/thread3.0.6/libtcl9thread3.0.6.dylib +0 -0
  501. package/python/lib/thread3.0.6/libthread3.0.6.dylib +0 -0
  502. package/python/lib/thread3.0.6/pkgIndex.tcl +0 -52
  503. package/python/lib/thread3.0.6/ttrace.tcl +0 -943
  504. package/python/lib/tk9.0/bgerror.tcl +0 -282
  505. package/python/lib/tk9.0/button.tcl +0 -782
  506. package/python/lib/tk9.0/choosedir.tcl +0 -310
  507. package/python/lib/tk9.0/clrpick.tcl +0 -696
  508. package/python/lib/tk9.0/comdlg.tcl +0 -322
  509. package/python/lib/tk9.0/console.tcl +0 -1148
  510. package/python/lib/tk9.0/dialog.tcl +0 -175
  511. package/python/lib/tk9.0/entry.tcl +0 -721
  512. package/python/lib/tk9.0/focus.tcl +0 -178
  513. package/python/lib/tk9.0/fontchooser.tcl +0 -512
  514. package/python/lib/tk9.0/iconbadges.tcl +0 -253
  515. package/python/lib/tk9.0/iconlist.tcl +0 -705
  516. package/python/lib/tk9.0/icons.tcl +0 -54
  517. package/python/lib/tk9.0/images/README +0 -7
  518. package/python/lib/tk9.0/images/logo.eps +0 -2091
  519. package/python/lib/tk9.0/images/logo100.gif +0 -0
  520. package/python/lib/tk9.0/images/logo64.gif +0 -0
  521. package/python/lib/tk9.0/images/logoLarge.gif +0 -0
  522. package/python/lib/tk9.0/images/logoMed.gif +0 -0
  523. package/python/lib/tk9.0/images/pwrdLogo.eps +0 -1897
  524. package/python/lib/tk9.0/images/pwrdLogo100.gif +0 -0
  525. package/python/lib/tk9.0/images/pwrdLogo150.gif +0 -0
  526. package/python/lib/tk9.0/images/pwrdLogo175.gif +0 -0
  527. package/python/lib/tk9.0/images/pwrdLogo200.gif +0 -0
  528. package/python/lib/tk9.0/images/pwrdLogo75.gif +0 -0
  529. package/python/lib/tk9.0/images/tai-ku.gif +0 -0
  530. package/python/lib/tk9.0/listbox.tcl +0 -522
  531. package/python/lib/tk9.0/megawidget.tcl +0 -297
  532. package/python/lib/tk9.0/menu.tcl +0 -1376
  533. package/python/lib/tk9.0/mkpsenc.tcl +0 -1488
  534. package/python/lib/tk9.0/msgbox.tcl +0 -454
  535. package/python/lib/tk9.0/optMenu.tcl +0 -43
  536. package/python/lib/tk9.0/palette.tcl +0 -283
  537. package/python/lib/tk9.0/panedwindow.tcl +0 -194
  538. package/python/lib/tk9.0/pkgIndex.tcl +0 -3
  539. package/python/lib/tk9.0/print.tcl +0 -1460
  540. package/python/lib/tk9.0/safetk.tcl +0 -262
  541. package/python/lib/tk9.0/scale.tcl +0 -299
  542. package/python/lib/tk9.0/scaling.tcl +0 -232
  543. package/python/lib/tk9.0/scrlbar.tcl +0 -506
  544. package/python/lib/tk9.0/spinbox.tcl +0 -590
  545. package/python/lib/tk9.0/systray.tcl +0 -483
  546. package/python/lib/tk9.0/tclIndex +0 -252
  547. package/python/lib/tk9.0/tearoff.tcl +0 -155
  548. package/python/lib/tk9.0/text.tcl +0 -1295
  549. package/python/lib/tk9.0/tk.tcl +0 -853
  550. package/python/lib/tk9.0/tkAppInit.c +0 -200
  551. package/python/lib/tk9.0/tkfbox.tcl +0 -1251
  552. package/python/lib/tk9.0/ttk/altTheme.tcl +0 -158
  553. package/python/lib/tk9.0/ttk/aquaTheme.tcl +0 -254
  554. package/python/lib/tk9.0/ttk/button.tcl +0 -83
  555. package/python/lib/tk9.0/ttk/clamTheme.tcl +0 -200
  556. package/python/lib/tk9.0/ttk/classicTheme.tcl +0 -165
  557. package/python/lib/tk9.0/ttk/combobox.tcl +0 -555
  558. package/python/lib/tk9.0/ttk/cursors.tcl +0 -205
  559. package/python/lib/tk9.0/ttk/defaults.tcl +0 -250
  560. package/python/lib/tk9.0/ttk/entry.tcl +0 -678
  561. package/python/lib/tk9.0/ttk/fonts.tcl +0 -152
  562. package/python/lib/tk9.0/ttk/menubutton.tcl +0 -237
  563. package/python/lib/tk9.0/ttk/notebook.tcl +0 -261
  564. package/python/lib/tk9.0/ttk/panedwindow.tcl +0 -89
  565. package/python/lib/tk9.0/ttk/progress.tcl +0 -55
  566. package/python/lib/tk9.0/ttk/scale.tcl +0 -94
  567. package/python/lib/tk9.0/ttk/scrollbar.tcl +0 -119
  568. package/python/lib/tk9.0/ttk/sizegrip.tcl +0 -102
  569. package/python/lib/tk9.0/ttk/spinbox.tcl +0 -204
  570. package/python/lib/tk9.0/ttk/treeview.tcl +0 -464
  571. package/python/lib/tk9.0/ttk/ttk.tcl +0 -220
  572. package/python/lib/tk9.0/ttk/utils.tcl +0 -317
  573. package/python/lib/tk9.0/ttk/vistaTheme.tcl +0 -260
  574. package/python/lib/tk9.0/ttk/winTheme.tcl +0 -123
  575. package/python/lib/tk9.0/ttk/xpTheme.tcl +0 -99
  576. package/python/lib/tk9.0/xmfbox.tcl +0 -982
  577. package/python/share/man/man1/python.1 +0 -630
  578. package/python/share/man/man1/python3.1 +0 -630
  579. package/python/share/man/man1/python3.12.1 +0 -630
  580. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/WHEEL +0 -0
  581. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/entry_points.txt +0 -0
  582. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/NOTICE +0 -0
  583. /package/modules/{simplex_localmodels-0.1.0.dev31.dist-info → simplex_localmodels-0.1.0.dev32.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
@@ -1,1459 +0,0 @@
1
- # safe.tcl --
2
- #
3
- # This file provide a safe loading/sourcing mechanism for safe interpreters.
4
- # It implements a virtual path mecanism to hide the real pathnames from the
5
- # child. It runs in a parent interpreter and sets up data structure and
6
- # aliases that will be invoked when used from a child interpreter.
7
- #
8
- # See the safe.n man page for details.
9
- #
10
- # Copyright © 1996-1997 Sun Microsystems, Inc.
11
- #
12
- # See the file "license.terms" for information on usage and redistribution of
13
- # this file, and for a DISCLAIMER OF ALL WARRANTIES.
14
-
15
- #
16
- # The implementation is based on namespaces. These naming conventions are
17
- # followed:
18
- # Private procs starts with uppercase.
19
- # Public procs are exported and starts with lowercase
20
- #
21
-
22
- # Needed utilities package
23
- package require opt 0.4.10
24
-
25
- # Create the safe namespace
26
- namespace eval ::safe {
27
- # Exported API:
28
- namespace export interpCreate interpInit interpConfigure interpDelete \
29
- interpAddToAccessPath interpFindInAccessPath setLogCmd
30
- }
31
-
32
- # Helper function to resolve the dual way of specifying staticsok (either
33
- # by -noStatics or -statics 0)
34
- proc ::safe::InterpStatics {} {
35
- foreach v {Args statics noStatics} {
36
- upvar $v $v
37
- }
38
- set flag [::tcl::OptProcArgGiven -noStatics]
39
- if {$flag && (!$noStatics == !$statics)
40
- && ([::tcl::OptProcArgGiven -statics])} {
41
- return -code error\
42
- "conflicting values given for -statics and -noStatics"
43
- }
44
- if {$flag} {
45
- return [expr {!$noStatics}]
46
- } else {
47
- return $statics
48
- }
49
- }
50
-
51
- # Helper function to resolve the dual way of specifying nested loading
52
- # (either by -nestedLoadOk or -nested 1)
53
- proc ::safe::InterpNested {} {
54
- foreach v {Args nested nestedLoadOk} {
55
- upvar $v $v
56
- }
57
- set flag [::tcl::OptProcArgGiven -nestedLoadOk]
58
- # note that the test here is the opposite of the "InterpStatics" one
59
- # (it is not -noNested... because of the wanted default value)
60
- if {$flag && (!$nestedLoadOk != !$nested)
61
- && ([::tcl::OptProcArgGiven -nested])} {
62
- return -code error\
63
- "conflicting values given for -nested and -nestedLoadOk"
64
- }
65
- if {$flag} {
66
- # another difference with "InterpStatics"
67
- return $nestedLoadOk
68
- } else {
69
- return $nested
70
- }
71
- }
72
-
73
- ####
74
- #
75
- # API entry points that needs argument parsing :
76
- #
77
- ####
78
-
79
- # Interface/entry point function and front end for "Create"
80
- proc ::safe::interpCreate {args} {
81
- variable AutoPathSync
82
- if {$AutoPathSync} {
83
- set autoPath {}
84
- }
85
- set Args [::tcl::OptKeyParse ::safe::interpCreate $args]
86
- RejectExcessColons $child
87
-
88
- set withAutoPath [::tcl::OptProcArgGiven -autoPath]
89
- InterpCreate $child $accessPath \
90
- [InterpStatics] [InterpNested] $deleteHook $autoPath $withAutoPath
91
- }
92
-
93
- proc ::safe::interpInit {args} {
94
- variable AutoPathSync
95
- if {$AutoPathSync} {
96
- set autoPath {}
97
- }
98
- set Args [::tcl::OptKeyParse ::safe::interpIC $args]
99
- if {![::interp exists $child]} {
100
- return -code error "\"$child\" is not an interpreter"
101
- }
102
- RejectExcessColons $child
103
-
104
- set withAutoPath [::tcl::OptProcArgGiven -autoPath]
105
- InterpInit $child $accessPath \
106
- [InterpStatics] [InterpNested] $deleteHook $autoPath $withAutoPath
107
- }
108
-
109
- # Check that the given child is "one of us"
110
- proc ::safe::CheckInterp {child} {
111
- namespace upvar ::safe [VarName $child] state
112
- if {![info exists state] || ![::interp exists $child]} {
113
- return -code error \
114
- "\"$child\" is not an interpreter managed by ::safe::"
115
- }
116
- }
117
-
118
- # Interface/entry point function and front end for "Configure". This code
119
- # is awfully pedestrian because it would need more coupling and support
120
- # between the way we store the configuration values in safe::interp's and
121
- # the Opt package. Obviously we would like an OptConfigure to avoid
122
- # duplicating all this code everywhere.
123
- # -> TODO (the app should share or access easily the program/value stored
124
- # by opt)
125
-
126
- # This is even more complicated by the boolean flags with no values that
127
- # we had the bad idea to support for the sake of user simplicity in
128
- # create/init but which makes life hard in configure...
129
- # So this will be hopefully written and some integrated with opt1.0
130
- # (hopefully for tcl9.0 ?)
131
- proc ::safe::interpConfigure {args} {
132
- variable AutoPathSync
133
- switch [llength $args] {
134
- 1 {
135
- # If we have exactly 1 argument the semantic is to return all
136
- # the current configuration. We still call OptKeyParse though
137
- # we know that "child" is our given argument because it also
138
- # checks for the "-help" option.
139
- set Args [::tcl::OptKeyParse ::safe::interpIC $args]
140
- CheckInterp $child
141
- namespace upvar ::safe [VarName $child] state
142
-
143
- set TMP [list \
144
- [list -accessPath $state(access_path)] \
145
- [list -statics $state(staticsok)] \
146
- [list -nested $state(nestedok)] \
147
- [list -deleteHook $state(cleanupHook)] \
148
- ]
149
- if {!$AutoPathSync} {
150
- lappend TMP [list -autoPath $state(auto_path)]
151
- }
152
- return [join $TMP]
153
- }
154
- 2 {
155
- # If we have exactly 2 arguments the semantic is a "configure
156
- # get"
157
- lassign $args child arg
158
-
159
- # get the flag sub program (we 'know' about Opt's internal
160
- # representation of data)
161
- set desc [lindex [::tcl::OptKeyGetDesc ::safe::interpIC] 2]
162
- set hits [::tcl::OptHits desc $arg]
163
- if {$hits > 1} {
164
- return -code error [::tcl::OptAmbigous $desc $arg]
165
- } elseif {$hits == 0} {
166
- return -code error [::tcl::OptFlagUsage $desc $arg]
167
- }
168
- CheckInterp $child
169
- namespace upvar ::safe [VarName $child] state
170
-
171
- set item [::tcl::OptCurDesc $desc]
172
- set name [::tcl::OptName $item]
173
- switch -exact -- $name {
174
- -accessPath {
175
- return [list -accessPath $state(access_path)]
176
- }
177
- -autoPath {
178
- if {$AutoPathSync} {
179
- return -code error "unknown flag $name (bug)"
180
- } else {
181
- return [list -autoPath $state(auto_path)]
182
- }
183
- }
184
- -statics {
185
- return [list -statics $state(staticsok)]
186
- }
187
- -nested {
188
- return [list -nested $state(nestedok)]
189
- }
190
- -deleteHook {
191
- return [list -deleteHook $state(cleanupHook)]
192
- }
193
- -noStatics {
194
- # it is most probably a set in fact but we would need
195
- # then to jump to the set part and it is not *sure*
196
- # that it is a set action that the user want, so force
197
- # it to use the unambiguous -statics ?value? instead:
198
- return -code error\
199
- "ambigous query (get or set -noStatics ?)\
200
- use -statics instead"
201
- }
202
- -nestedLoadOk {
203
- return -code error\
204
- "ambigous query (get or set -nestedLoadOk ?)\
205
- use -nested instead"
206
- }
207
- default {
208
- return -code error "unknown flag $name (bug)"
209
- }
210
- }
211
- }
212
- default {
213
- # Otherwise we want to parse the arguments like init and
214
- # create did
215
- set Args [::tcl::OptKeyParse ::safe::interpIC $args]
216
- CheckInterp $child
217
- namespace upvar ::safe [VarName $child] state
218
-
219
- # Get the current (and not the default) values of whatever has
220
- # not been given:
221
- if {![::tcl::OptProcArgGiven -accessPath]} {
222
- set doreset 0
223
- set accessPath $state(access_path)
224
- } else {
225
- set doreset 1
226
- }
227
- if {(!$AutoPathSync) && (![::tcl::OptProcArgGiven -autoPath])} {
228
- set autoPath $state(auto_path)
229
- } elseif {$AutoPathSync} {
230
- set autoPath {}
231
- } else {
232
- }
233
- if {
234
- ![::tcl::OptProcArgGiven -statics]
235
- && ![::tcl::OptProcArgGiven -noStatics]
236
- } then {
237
- set statics $state(staticsok)
238
- } else {
239
- set statics [InterpStatics]
240
- }
241
- if {
242
- [::tcl::OptProcArgGiven -nested] ||
243
- [::tcl::OptProcArgGiven -nestedLoadOk]
244
- } then {
245
- set nested [InterpNested]
246
- } else {
247
- set nested $state(nestedok)
248
- }
249
- if {![::tcl::OptProcArgGiven -deleteHook]} {
250
- set deleteHook $state(cleanupHook)
251
- }
252
- # Now reconfigure
253
- set withAutoPath [::tcl::OptProcArgGiven -autoPath]
254
- InterpSetConfig $child $accessPath $statics $nested $deleteHook $autoPath $withAutoPath
255
-
256
- # auto_reset the child (to completely sync the new access_path) tests safe-9.8 safe-9.9
257
- if {$doreset} {
258
- if {[catch {::interp eval $child {auto_reset}} msg]} {
259
- Log $child "auto_reset failed: $msg"
260
- } else {
261
- Log $child "successful auto_reset" NOTICE
262
- }
263
-
264
- # Sync the paths used to search for Tcl modules.
265
- ::interp eval $child {tcl::tm::path remove {*}[tcl::tm::list]}
266
- if {[llength $state(tm_path_child)] > 0} {
267
- ::interp eval $child [list \
268
- ::tcl::tm::add {*}[lreverse $state(tm_path_child)]]
269
- }
270
-
271
- # Remove stale "package ifneeded" data for non-loaded packages.
272
- # - Not for loaded packages, because "package forget" erases
273
- # data from "package provide" as well as "package ifneeded".
274
- # - This is OK because the script cannot reload any version of
275
- # the package unless it first does "package forget".
276
- foreach pkg [::interp eval $child {package names}] {
277
- if {[::interp eval $child [list package provide $pkg]] eq ""} {
278
- ::interp eval $child [list package forget $pkg]
279
- }
280
- }
281
- }
282
- return
283
- }
284
- }
285
- }
286
-
287
- ####
288
- #
289
- # Functions that actually implements the exported APIs
290
- #
291
- ####
292
-
293
- #
294
- # safe::InterpCreate : doing the real job
295
- #
296
- # This procedure creates a safe interpreter and initializes it with the safe
297
- # base aliases.
298
- # NB: child name must be simple alphanumeric string, no spaces, no (), no
299
- # {},... {because the state array is stored as part of the name}
300
- #
301
- # Returns the child name.
302
- #
303
- # Optional Arguments :
304
- # + child name : if empty, generated name will be used
305
- # + access_path: path list controlling where load/source can occur,
306
- # if empty: the parent auto_path and its subdirectories will be
307
- # used.
308
- # + staticsok : flag, if 0 :no static package can be loaded (load {} Xxx)
309
- # if 1 :static packages are ok.
310
- # + nestedok : flag, if 0 :no loading to sub-sub interps (load xx xx sub)
311
- # if 1 : multiple levels are ok.
312
-
313
- # use the full name and no indent so auto_mkIndex can find us
314
- proc ::safe::InterpCreate {
315
- child
316
- access_path
317
- staticsok
318
- nestedok
319
- deletehook
320
- autoPath
321
- withAutoPath
322
- } {
323
- # Create the child.
324
- # If evaluated in ::safe, the interpreter command for foo is ::foo;
325
- # but for foo::bar is safe::foo::bar. So evaluate in :: instead.
326
- if {$child ne ""} {
327
- namespace eval :: [list ::interp create -safe $child]
328
- } else {
329
- # empty argument: generate child name
330
- set child [::interp create -safe]
331
- }
332
- Log $child "Created" NOTICE
333
-
334
- # Initialize it. (returns child name)
335
- InterpInit $child $access_path $staticsok $nestedok $deletehook $autoPath $withAutoPath
336
- }
337
-
338
- #
339
- # InterpSetConfig (was setAccessPath) :
340
- # Sets up child virtual access path and corresponding structure within
341
- # the parent. Also sets the tcl_library in the child to be the first
342
- # directory in the path.
343
- # NB: If you change the path after the child has been initialized you
344
- # probably need to call "auto_reset" in the child in order that it gets
345
- # the right auto_index() array values.
346
- #
347
- # It is the caller's responsibility, if it supplies a non-empty value for
348
- # access_path, to make the first directory in the path suitable for use as
349
- # tcl_library, and (if ![setSyncMode]), to set the child's ::auto_path.
350
-
351
- proc ::safe::InterpSetConfig {child access_path staticsok nestedok deletehook autoPath withAutoPath} {
352
- global auto_path
353
- variable AutoPathSync
354
-
355
- # determine and store the access path if empty
356
- if {$access_path eq ""} {
357
- set access_path $auto_path
358
-
359
- # Make sure that tcl_library is in auto_path and at the first
360
- # position (needed by setAccessPath)
361
- set where [lsearch -exact $access_path [info library]]
362
- if {$where < 0} {
363
- # not found, add it.
364
- set access_path [linsert $access_path 0 [info library]]
365
- Log $child "tcl_library was not in auto_path,\
366
- added it to child's access_path" NOTICE
367
- } elseif {$where != 0} {
368
- # not first, move it first
369
- set access_path [linsert \
370
- [lreplace $access_path $where $where] \
371
- 0 [info library]]
372
- Log $child "tcl_libray was not in first in auto_path,\
373
- moved it to front of child's access_path" NOTICE
374
- }
375
-
376
- set raw_auto_path $access_path
377
-
378
- # Add 1st level subdirs (will searched by auto loading from tcl
379
- # code in the child using glob and thus fail, so we add them here
380
- # so by default it works the same).
381
- set access_path [AddSubDirs $access_path]
382
- } else {
383
- set raw_auto_path $autoPath
384
- }
385
-
386
- if {$withAutoPath} {
387
- set raw_auto_path $autoPath
388
- }
389
-
390
- Log $child "Setting accessPath=($access_path) staticsok=$staticsok\
391
- nestedok=$nestedok deletehook=($deletehook)" NOTICE
392
- if {!$AutoPathSync} {
393
- Log $child "Setting auto_path=($raw_auto_path)" NOTICE
394
- }
395
-
396
- namespace upvar ::safe [VarName $child] state
397
-
398
- # clear old autopath if it existed
399
- # build new one
400
- # Extend the access list with the paths used to look for Tcl Modules.
401
- # We save the virtual form separately as well, as syncing it with the
402
- # child has to be defered until the necessary commands are present for
403
- # setup.
404
- set norm_access_path {}
405
- set child_access_path {}
406
- set map_access_path {}
407
- set remap_access_path {}
408
- set child_tm_path {}
409
-
410
- set i 0
411
- foreach dir $access_path {
412
- set token [PathToken $i]
413
- lappend child_access_path $token
414
- lappend map_access_path $token $dir
415
- lappend remap_access_path $dir $token
416
- lappend norm_access_path [file normalize $dir]
417
- incr i
418
- }
419
-
420
- # Set the child auto_path to a tokenized raw_auto_path.
421
- # Silently ignore any directories that are not in the access path.
422
- # If [setSyncMode], SyncAccessPath will overwrite this value with the
423
- # full access path.
424
- # If ![setSyncMode], Safe Base code will not change this value.
425
- set tokens_auto_path {}
426
- foreach dir $raw_auto_path {
427
- if {[dict exists $remap_access_path $dir]} {
428
- lappend tokens_auto_path [dict get $remap_access_path $dir]
429
- }
430
- }
431
- ::interp eval $child [list set auto_path $tokens_auto_path]
432
-
433
- # Add the tcl::tm directories to the access path.
434
- set morepaths [::tcl::tm::list]
435
- set firstpass 1
436
- while {[llength $morepaths]} {
437
- set addpaths $morepaths
438
- set morepaths {}
439
-
440
- foreach dir $addpaths {
441
- # Prevent the addition of dirs on the tm list to the
442
- # result if they are already known.
443
- if {[dict exists $remap_access_path $dir]} {
444
- if {$firstpass} {
445
- # $dir is in [::tcl::tm::list] and belongs in the child_tm_path.
446
- # Later passes handle subdirectories, which belong in the
447
- # access path but not in the module path.
448
- lappend child_tm_path [dict get $remap_access_path $dir]
449
- }
450
- continue
451
- }
452
-
453
- set token [PathToken $i]
454
- lappend access_path $dir
455
- lappend child_access_path $token
456
- lappend map_access_path $token $dir
457
- lappend remap_access_path $dir $token
458
- lappend norm_access_path [file normalize $dir]
459
- if {$firstpass} {
460
- # $dir is in [::tcl::tm::list] and belongs in the child_tm_path.
461
- # Later passes handle subdirectories, which belong in the
462
- # access path but not in the module path.
463
- lappend child_tm_path $token
464
- }
465
- incr i
466
-
467
- # [Bug 2854929]
468
- # Recursively find deeper paths which may contain
469
- # modules. Required to handle modules with names like
470
- # 'platform::shell', which translate into
471
- # 'platform/shell-X.tm', i.e arbitrarily deep
472
- # subdirectories.
473
- lappend morepaths {*}[glob -nocomplain -directory $dir -type d *]
474
- }
475
- set firstpass 0
476
- }
477
-
478
- set state(access_path) $access_path
479
- set state(access_path,map) $map_access_path
480
- set state(access_path,remap) $remap_access_path
481
- set state(access_path,norm) $norm_access_path
482
- set state(access_path,child) $child_access_path
483
- set state(tm_path_child) $child_tm_path
484
- set state(staticsok) $staticsok
485
- set state(nestedok) $nestedok
486
- set state(cleanupHook) $deletehook
487
-
488
- if {!$AutoPathSync} {
489
- set state(auto_path) $raw_auto_path
490
- }
491
-
492
- SyncAccessPath $child
493
- return
494
- }
495
-
496
- #
497
- # DetokPath:
498
- # Convert tokens to directories where possible.
499
- # Leave undefined tokens unconverted. They are
500
- # nonsense in both the child and the parent.
501
- #
502
- proc ::safe::DetokPath {child tokenPath} {
503
- namespace upvar ::safe [VarName $child] state
504
-
505
- set childPath {}
506
- foreach token $tokenPath {
507
- if {[dict exists $state(access_path,map) $token]} {
508
- lappend childPath [dict get $state(access_path,map) $token]
509
- } else {
510
- lappend childPath $token
511
- }
512
- }
513
- return $childPath
514
- }
515
-
516
- #
517
- #
518
- # interpFindInAccessPath:
519
- # Search for a real directory and returns its virtual Id (including the
520
- # "$")
521
- #
522
- # When debugging, use TranslatePath for the inverse operation.
523
- proc ::safe::interpFindInAccessPath {child path} {
524
- CheckInterp $child
525
- namespace upvar ::safe [VarName $child] state
526
-
527
- if {![dict exists $state(access_path,remap) $path]} {
528
- return -code error "$path not found in access path"
529
- }
530
-
531
- return [dict get $state(access_path,remap) $path]
532
- }
533
-
534
- #
535
- # addToAccessPath:
536
- # add (if needed) a real directory to access path and return its
537
- # virtual token (including the "$").
538
- proc ::safe::interpAddToAccessPath {child path} {
539
- # first check if the directory is already in there
540
- # (inlined interpFindInAccessPath).
541
- CheckInterp $child
542
- namespace upvar ::safe [VarName $child] state
543
-
544
- if {[dict exists $state(access_path,remap) $path]} {
545
- return [dict get $state(access_path,remap) $path]
546
- }
547
-
548
- # new one, add it:
549
- set token [PathToken [llength $state(access_path)]]
550
-
551
- lappend state(access_path) $path
552
- lappend state(access_path,child) $token
553
- lappend state(access_path,map) $token $path
554
- lappend state(access_path,remap) $path $token
555
- lappend state(access_path,norm) [file normalize $path]
556
-
557
- SyncAccessPath $child
558
- return $token
559
- }
560
-
561
- # This procedure applies the initializations to an already existing
562
- # interpreter. It is useful when you want to install the safe base aliases
563
- # into a preexisting safe interpreter.
564
- proc ::safe::InterpInit {
565
- child
566
- access_path
567
- staticsok
568
- nestedok
569
- deletehook
570
- autoPath
571
- withAutoPath
572
- } {
573
- # Configure will generate an access_path when access_path is empty.
574
- InterpSetConfig $child $access_path $staticsok $nestedok $deletehook $autoPath $withAutoPath
575
-
576
- # NB we need to add [namespace current], aliases are always absolute
577
- # paths.
578
-
579
- # These aliases let the child load files to define new commands
580
- # This alias lets the child use the encoding names, convertfrom,
581
- # convertto, and system, but not "encoding system <name>" to set the
582
- # system encoding.
583
- # Handling Tcl Modules, we need a restricted form of Glob.
584
- # This alias interposes on the 'exit' command and cleanly terminates
585
- # the child.
586
-
587
- foreach {command alias} {
588
- source AliasSource
589
- load AliasLoad
590
- exit interpDelete
591
- glob AliasGlob
592
- } {
593
- ::interp alias $child $command {} [namespace current]::$alias $child
594
- }
595
-
596
- # UGLY POINT! These commands are safe (they're ensembles with unsafe
597
- # subcommands), but is assumed to not be by existing policies so it is
598
- # hidden by default. Hack it...
599
- foreach command {encoding file} {
600
- ::interp alias $child $command {} interp invokehidden $child $command
601
- }
602
-
603
- # This alias lets the child have access to a subset of the 'file'
604
- # command functionality.
605
-
606
- foreach subcommand {dirname extension rootname tail} {
607
- ::interp alias $child ::tcl::file::$subcommand {} \
608
- ::safe::AliasFileSubcommand $child $subcommand
609
- }
610
-
611
- # Subcommand of 'encoding' that has special handling; [encoding system] is
612
- # OK provided it has no other arguments passed to it.
613
- ::interp alias $child ::tcl::encoding::system {} \
614
- ::safe::AliasEncodingSystem $child
615
-
616
- # Subcommands of info
617
- ::interp alias $child ::tcl::info::nameofexecutable {} \
618
- ::safe::AliasExeName $child
619
-
620
- # Source init.tcl and tm.tcl into the child, to get auto_load and
621
- # other procedures defined:
622
-
623
- if {[catch {::interp eval $child {
624
- source [file join $tcl_library init.tcl]
625
- }} msg opt]} {
626
- Log $child "can't source init.tcl ($msg)"
627
- return -options $opt "can't source init.tcl into child $child ($msg)"
628
- }
629
-
630
- if {[catch {::interp eval $child {
631
- source [file join $tcl_library tm.tcl]
632
- }} msg opt]} {
633
- Log $child "can't source tm.tcl ($msg)"
634
- return -options $opt "can't source tm.tcl into child $child ($msg)"
635
- }
636
-
637
- # Sync the paths used to search for Tcl modules. This can be done only
638
- # now, after tm.tcl was loaded.
639
- namespace upvar ::safe [VarName $child] state
640
- if {[llength $state(tm_path_child)] > 0} {
641
- ::interp eval $child [list \
642
- ::tcl::tm::add {*}[lreverse $state(tm_path_child)]]
643
- }
644
- return $child
645
- }
646
-
647
- # Add (only if needed, avoid duplicates) 1 level of sub directories to an
648
- # existing path list. Also removes non directories from the returned
649
- # list.
650
- proc ::safe::AddSubDirs {pathList} {
651
- set res {}
652
- foreach dir $pathList {
653
- if {[file isdirectory $dir]} {
654
- # check that we don't have it yet as a children of a previous
655
- # dir
656
- if {$dir ni $res} {
657
- lappend res $dir
658
- }
659
- foreach sub [glob -directory $dir -nocomplain *] {
660
- if {[file isdirectory $sub] && ($sub ni $res)} {
661
- # new sub dir, add it !
662
- lappend res $sub
663
- }
664
- }
665
- }
666
- }
667
- return $res
668
- }
669
-
670
- # This procedure deletes a safe interpreter managed by Safe Tcl and cleans up
671
- # associated state.
672
- # - The command will also delete non-Safe-Base interpreters.
673
- # - This is regrettable, but to avoid breaking existing code this should be
674
- # amended at the next major revision by uncommenting "CheckInterp".
675
-
676
- proc ::safe::interpDelete {child} {
677
- Log $child "About to delete" NOTICE
678
-
679
- # CheckInterp $child
680
- namespace upvar ::safe [VarName $child] state
681
-
682
- # When an interpreter is deleted with [interp delete], any sub-interpreters
683
- # are deleted automatically, but this leaves behind their data in the Safe
684
- # Base. To clean up properly, we call safe::interpDelete recursively on each
685
- # Safe Base sub-interpreter, so each one is deleted cleanly and not by
686
- # the automatic mechanism built into [interp delete].
687
- foreach sub [interp children $child] {
688
- if {[info exists ::safe::[VarName [list $child $sub]]]} {
689
- ::safe::interpDelete [list $child $sub]
690
- }
691
- }
692
-
693
- # If the child has a cleanup hook registered, call it. Check the
694
- # existence because we might be called to delete an interp which has
695
- # not been registered with us at all
696
-
697
- if {[info exists state(cleanupHook)]} {
698
- set hook $state(cleanupHook)
699
- if {[llength $hook]} {
700
- # remove the hook now, otherwise if the hook calls us somehow,
701
- # we'll loop
702
- unset state(cleanupHook)
703
- try {
704
- {*}$hook $child
705
- } on error err {
706
- Log $child "Delete hook error ($err)"
707
- }
708
- }
709
- }
710
-
711
- # Discard the global array of state associated with the child, and
712
- # delete the interpreter.
713
-
714
- if {[info exists state]} {
715
- unset state
716
- }
717
-
718
- # if we have been called twice, the interp might have been deleted
719
- # already
720
- if {[::interp exists $child]} {
721
- ::interp delete $child
722
- Log $child "Deleted" NOTICE
723
- }
724
-
725
- return
726
- }
727
-
728
- # Set (or get) the logging mechanism
729
-
730
- proc ::safe::setLogCmd {args} {
731
- variable Log
732
- set la [llength $args]
733
- if {$la == 0} {
734
- return $Log
735
- } elseif {$la == 1} {
736
- set Log [lindex $args 0]
737
- } else {
738
- set Log $args
739
- }
740
-
741
- if {$Log eq ""} {
742
- # Disable logging completely. Calls to it will be compiled out
743
- # of all users.
744
- proc ::safe::Log {args} {}
745
- } else {
746
- # Activate logging, define proper command.
747
-
748
- proc ::safe::Log {child msg {type ERROR}} {
749
- variable Log
750
- {*}$Log "$type for child $child : $msg"
751
- return
752
- }
753
- }
754
- }
755
-
756
- # ------------------- END OF PUBLIC METHODS ------------
757
-
758
- #
759
- # Sets the child auto_path to its recorded access path. Also sets
760
- # tcl_library to the first token of the access path.
761
- #
762
- proc ::safe::SyncAccessPath {child} {
763
- variable AutoPathSync
764
- namespace upvar ::safe [VarName $child] state
765
-
766
- set child_access_path $state(access_path,child)
767
- if {$AutoPathSync} {
768
- ::interp eval $child [list set auto_path $child_access_path]
769
-
770
- Log $child "auto_path in $child has been set to $child_access_path"\
771
- NOTICE
772
- }
773
-
774
- # This code assumes that info library is the first element in the
775
- # list of access path's. See -> InterpSetConfig for the code which
776
- # ensures this condition.
777
-
778
- ::interp eval $child [list \
779
- set tcl_library [lindex $child_access_path 0]]
780
- return
781
- }
782
-
783
- # Returns the virtual token for directory number N.
784
- proc ::safe::PathToken {n} {
785
- # We need to have a ":" in the token string so [file join] on the
786
- # mac won't turn it into a relative path.
787
- return "\$p(:$n:)" ;# Form tested by case 7.2
788
- }
789
-
790
- #
791
- # translate virtual path into real path
792
- #
793
- proc ::safe::TranslatePath {child path} {
794
- namespace upvar ::safe [VarName $child] state
795
-
796
- # somehow strip the namespaces 'functionality' out (the danger is that
797
- # we would strip valid macintosh "../" queries... :
798
- if {[string match "*::*" $path] || [string match "*..*" $path]} {
799
- return -code error "invalid characters in path $path"
800
- }
801
-
802
- # Use a cached map instead of computed local vars and subst.
803
-
804
- return [string map $state(access_path,map) $path]
805
- }
806
-
807
- # file name control (limit access to files/resources that should be a
808
- # valid tcl source file)
809
- proc ::safe::CheckFileName {child file} {
810
- # This used to limit what can be sourced to ".tcl" and forbid files
811
- # with more than 1 dot and longer than 14 chars, but I changed that
812
- # for 8.4 as a safe interp has enough internal protection already to
813
- # allow sourcing anything. - hobbs
814
-
815
- if {![file exists $file]} {
816
- # don't tell the file path
817
- return -code error "no such file or directory"
818
- }
819
-
820
- if {![file readable $file]} {
821
- # don't tell the file path
822
- return -code error "not readable"
823
- }
824
- }
825
-
826
- # AliasFileSubcommand handles selected subcommands of [file] in safe
827
- # interpreters that are *almost* safe. In particular, it just acts to
828
- # prevent discovery of what home directories exist.
829
-
830
- proc ::safe::AliasFileSubcommand {child subcommand name} {
831
- tailcall ::interp invokehidden $child tcl:file:$subcommand $name
832
- }
833
-
834
- # AliasGlob is the target of the "glob" alias in safe interpreters.
835
-
836
- proc ::safe::AliasGlob {child args} {
837
- variable AutoPathSync
838
- Log $child "GLOB ! $args" NOTICE
839
- set cmd {}
840
- set at 0
841
- array set got {
842
- -directory 0
843
- -nocomplain 0
844
- -join 0
845
- -tails 0
846
- -- 0
847
- }
848
-
849
- if {$::tcl_platform(platform) eq "windows"} {
850
- set dirPartRE {^(.*)[\\/]([^\\/]*)$}
851
- } else {
852
- set dirPartRE {^(.*)/([^/]*)$}
853
- }
854
-
855
- set dir {}
856
- set virtualdir {}
857
-
858
- while {$at < [llength $args]} {
859
- switch -glob -- [set opt [lindex $args $at]] {
860
- -nocomplain - -- - -tails {
861
- lappend cmd $opt
862
- set got($opt) 1
863
- incr at
864
- }
865
- -join {
866
- set got($opt) 1
867
- incr at
868
- }
869
- -types - -type {
870
- lappend cmd -types [lindex $args [incr at]]
871
- incr at
872
- }
873
- -directory {
874
- if {$got($opt)} {
875
- return -code error \
876
- {"-directory" cannot be used with "-path"}
877
- }
878
- set got($opt) 1
879
- set virtualdir [lindex $args [incr at]]
880
- incr at
881
- }
882
- -* {
883
- Log $child "Safe base rejecting glob option '$opt'"
884
- return -code error "Safe base rejecting glob option '$opt'"
885
- # unsafe/unnecessary options rejected: -path
886
- }
887
- default {
888
- break
889
- }
890
- }
891
- if {$got(--)} break
892
- }
893
-
894
- # Get the real path from the virtual one and check that the path is in the
895
- # access path of that child. Done after basic argument processing so that
896
- # we know if -nocomplain is set.
897
- if {$got(-directory)} {
898
- try {
899
- set dir [TranslatePath $child $virtualdir]
900
- DirInAccessPath $child $dir
901
- } on error msg {
902
- Log $child $msg
903
- if {$got(-nocomplain)} return
904
- return -code error "permission denied"
905
- }
906
- if {$got(--)} {
907
- set cmd [linsert $cmd end-1 -directory $dir]
908
- } else {
909
- lappend cmd -directory $dir
910
- }
911
- } else {
912
- # The code after this "if ... else" block would conspire to return with
913
- # no results in this case, if it were allowed to proceed. Instead,
914
- # return now and reduce the number of cases to be considered later.
915
- Log $child {option -directory must be supplied}
916
- if {$got(-nocomplain)} return
917
- return -code error "permission denied"
918
- }
919
-
920
- # Apply the -join semantics ourselves (hence -join not copied to $cmd)
921
- if {$got(-join)} {
922
- set args [lreplace $args $at end [join [lrange $args $at end] "/"]]
923
- }
924
-
925
- # Process the pattern arguments. If we've done a join there is only one
926
- # pattern argument.
927
-
928
- set firstPattern [llength $cmd]
929
- foreach opt [lrange $args $at end] {
930
- if {![regexp $dirPartRE $opt -> thedir thefile]} {
931
- set thedir .
932
- # The *.tm search comes here.
933
- }
934
- # "Special" treatment for (joined) argument {*/pkgIndex.tcl}.
935
- # Do the expansion of "*" here, and filter out any directories that are
936
- # not in the access path. The outcome is to lappend to cmd a path of
937
- # the form $virtualdir/subdir/pkgIndex.tcl for each subdirectory subdir,
938
- # after removing any subdir that are not in the access path.
939
- if {($thedir eq "*") && ($thefile eq "pkgIndex.tcl")} {
940
- set mapped 0
941
- foreach d [glob -directory [TranslatePath $child $virtualdir] \
942
- -types d -tails *] {
943
- catch {
944
- DirInAccessPath $child \
945
- [TranslatePath $child [file join $virtualdir $d]]
946
- lappend cmd [file join $d $thefile]
947
- set mapped 1
948
- }
949
- }
950
- if {$mapped} continue
951
- # Don't [continue] if */pkgIndex.tcl has no matches in the access
952
- # path. The pattern will now receive the same treatment as a
953
- # "non-special" pattern (and will fail because it includes a "*" in
954
- # the directory name).
955
- }
956
- # Any directory pattern that is not an exact (i.e. non-glob) match to a
957
- # directory in the access path will be rejected here.
958
- # - Rejections include any directory pattern that has glob matching
959
- # patterns "*", "?", backslashes, braces or square brackets, (UNLESS
960
- # it corresponds to a genuine directory name AND that directory is in
961
- # the access path).
962
- # - The only "special matching characters" that remain in patterns for
963
- # processing by glob are in the filename tail.
964
- # - [file join $anything ~${foo}] is ~${foo}, which is not an exact
965
- # match to any directory in the access path. Hence directory patterns
966
- # that begin with "~" are rejected here. Tests safe-16.[5-8] check
967
- # that "file join" remains as required and does not expand ~${foo}.
968
- # - Bug [3529949] relates to unwanted expansion of ~${foo} and this is
969
- # how the present code avoids the bug. All tests safe-16.* relate.
970
- try {
971
- DirInAccessPath $child [TranslatePath $child \
972
- [file join $virtualdir $thedir]]
973
- } on error msg {
974
- Log $child $msg
975
- if {$got(-nocomplain)} continue
976
- return -code error "permission denied"
977
- }
978
- lappend cmd $opt
979
- }
980
-
981
- Log $child "GLOB = $cmd" NOTICE
982
-
983
- if {$got(-nocomplain) && [llength $cmd] eq $firstPattern} {
984
- return
985
- }
986
- try {
987
- # >>>>>>>>>> HERE'S THE CALL TO SAFE INTERP GLOB <<<<<<<<<<
988
- # - Pattern arguments added to cmd have NOT been translated from tokens.
989
- # Only the virtualdir is translated (to dir).
990
- # - In the pkgIndex.tcl case, there is no "*" in the pattern arguments,
991
- # which are a list of names each with tail pkgIndex.tcl. The purpose
992
- # of the call to glob is to remove the names for which the file does
993
- # not exist.
994
- set entries [::interp invokehidden $child glob {*}$cmd]
995
- } on error msg {
996
- # This is the only place that a call with -nocomplain and no invalid
997
- # "dash-options" can return an error.
998
- Log $child $msg
999
- return -code error "script error"
1000
- }
1001
-
1002
- Log $child "GLOB < $entries" NOTICE
1003
-
1004
- # Translate path back to what the child should see.
1005
- set res {}
1006
- set l [string length $dir]
1007
- foreach p $entries {
1008
- if {[string equal -length $l $dir $p]} {
1009
- set p [string replace $p 0 [expr {$l-1}] $virtualdir]
1010
- }
1011
- lappend res $p
1012
- }
1013
-
1014
- Log $child "GLOB > $res" NOTICE
1015
- return $res
1016
- }
1017
-
1018
- # AliasSource is the target of the "source" alias in safe interpreters.
1019
-
1020
- proc ::safe::AliasSource {child args} {
1021
- set argc [llength $args]
1022
- # Extended for handling of Tcl Modules to allow not only "source
1023
- # filename", but "source -encoding E filename" as well.
1024
- if {[lindex $args 0] eq "-encoding"} {
1025
- incr argc -2
1026
- set encoding [lindex $args 1]
1027
- set at 2
1028
- if {$encoding eq "identity"} {
1029
- Log $child "attempt to use the identity encoding"
1030
- return -code error "permission denied"
1031
- }
1032
- } else {
1033
- set at 0
1034
- set encoding utf-8
1035
- }
1036
- if {$argc != 1} {
1037
- set msg "wrong # args: should be \"source ?-encoding E? fileName\""
1038
- Log $child "$msg ($args)"
1039
- return -code error $msg
1040
- }
1041
- set file [lindex $args $at]
1042
-
1043
- # get the real path from the virtual one.
1044
- if {[catch {
1045
- set realfile [TranslatePath $child $file]
1046
- } msg]} {
1047
- Log $child $msg
1048
- return -code error "permission denied"
1049
- }
1050
-
1051
- # check that the path is in the access path of that child
1052
- if {[catch {
1053
- FileInAccessPath $child $realfile
1054
- } msg]} {
1055
- Log $child $msg
1056
- return -code error "permission denied"
1057
- }
1058
-
1059
- # Check that the filename exists and is readable. If it is not, deliver
1060
- # this -errorcode so that caller in tclPkgUnknown does not write a message
1061
- # to tclLog. Has no effect on other callers of ::source, which are in
1062
- # "package ifneeded" scripts.
1063
- if {[catch {
1064
- CheckFileName $child $realfile
1065
- } msg]} {
1066
- Log $child "$realfile:$msg"
1067
- return -code error -errorcode {POSIX EACCES} $msg
1068
- }
1069
-
1070
- # Passed all the tests, lets source it. Note that we do this all manually
1071
- # because we want to control [info script] in the child so information
1072
- # doesn't leak so much. [Bug 2913625]
1073
- set old [::interp eval $child {info script}]
1074
- set replacementMsg "script error"
1075
- set code [catch {
1076
- set f [open $realfile]
1077
- fconfigure $f -encoding $encoding -eofchar \x1A
1078
- set contents [read $f]
1079
- close $f
1080
- ::interp eval $child [list info script $file]
1081
- } msg opt]
1082
- if {$code == 0} {
1083
- # See [Bug 1d26e580cf]
1084
- if {[string index $contents 0] eq "\uFEFF"} {
1085
- set contents [string range $contents 1 end]
1086
- }
1087
- set code [catch {::interp eval $child $contents} msg opt]
1088
- set replacementMsg $msg
1089
- }
1090
- catch {interp eval $child [list info script $old]}
1091
- # Note that all non-errors are fine result codes from [source], so we must
1092
- # take a little care to do it properly. [Bug 2923613]
1093
- if {$code == 1} {
1094
- Log $child $msg
1095
- return -code error $replacementMsg
1096
- }
1097
- return -code $code -options $opt $msg
1098
- }
1099
-
1100
- # AliasLoad is the target of the "load" alias in safe interpreters.
1101
-
1102
- proc ::safe::AliasLoad {child file args} {
1103
- set argc [llength $args]
1104
- if {$argc > 2} {
1105
- set msg "load error: too many arguments"
1106
- Log $child "$msg ($argc) {$file $args}"
1107
- return -code error $msg
1108
- }
1109
-
1110
- # prefix (can be empty if file is not).
1111
- set prefix [lindex $args 0]
1112
-
1113
- namespace upvar ::safe [VarName $child] state
1114
-
1115
- # Determine where to load. load use a relative interp path and {}
1116
- # means self, so we can directly and safely use passed arg.
1117
- set target [lindex $args 1]
1118
- if {$target ne ""} {
1119
- # we will try to load into a sub sub interp; check that we want to
1120
- # authorize that.
1121
- if {!$state(nestedok)} {
1122
- Log $child "loading to a sub interp (nestedok)\
1123
- disabled (trying to load $prefix to $target)"
1124
- return -code error "permission denied (nested load)"
1125
- }
1126
- }
1127
-
1128
- # Determine what kind of load is requested
1129
- if {$file eq ""} {
1130
- # static loading
1131
- if {$prefix eq ""} {
1132
- set msg "load error: empty filename and no prefix"
1133
- Log $child $msg
1134
- return -code error $msg
1135
- }
1136
- if {!$state(staticsok)} {
1137
- Log $child "static loading disabled\
1138
- (trying to load $prefix to $target)"
1139
- return -code error "permission denied (static library)"
1140
- }
1141
- } else {
1142
- # file loading
1143
-
1144
- # get the real path from the virtual one.
1145
- try {
1146
- set file [TranslatePath $child $file]
1147
- } on error msg {
1148
- Log $child $msg
1149
- return -code error "permission denied"
1150
- }
1151
-
1152
- # check the translated path
1153
- try {
1154
- FileInAccessPath $child $file
1155
- } on error msg {
1156
- Log $child $msg
1157
- return -code error "permission denied (path)"
1158
- }
1159
- }
1160
-
1161
- try {
1162
- return [::interp invokehidden $child load $file $prefix $target]
1163
- } on error msg {
1164
- # Some libraries return no error message.
1165
- set msg0 "load of library for prefix $prefix failed"
1166
- if {$msg eq {}} {
1167
- set msg $msg0
1168
- } else {
1169
- set msg "$msg0: $msg"
1170
- }
1171
- Log $child $msg
1172
- return -code error $msg
1173
- }
1174
- }
1175
-
1176
- # FileInAccessPath raises an error if the file is not found in the list of
1177
- # directories contained in the (parent side recorded) child's access path.
1178
-
1179
- # the security here relies on "file dirname" answering the proper
1180
- # result... needs checking ?
1181
- proc ::safe::FileInAccessPath {child file} {
1182
- namespace upvar ::safe [VarName $child] state
1183
- set access_path $state(access_path)
1184
-
1185
- if {[file isdirectory $file]} {
1186
- return -code error "\"$file\": is a directory"
1187
- }
1188
- set parent [file dirname $file]
1189
-
1190
- # Normalize paths for comparison since lsearch knows nothing of
1191
- # potential pathname anomalies.
1192
- set norm_parent [file normalize $parent]
1193
-
1194
- namespace upvar ::safe [VarName $child] state
1195
- if {$norm_parent ni $state(access_path,norm)} {
1196
- return -code error "\"$file\": not in access_path"
1197
- }
1198
- }
1199
-
1200
- proc ::safe::DirInAccessPath {child dir} {
1201
- namespace upvar ::safe [VarName $child] state
1202
- set access_path $state(access_path)
1203
-
1204
- if {[file isfile $dir]} {
1205
- return -code error "\"$dir\": is a file"
1206
- }
1207
-
1208
- # Normalize paths for comparison since lsearch knows nothing of
1209
- # potential pathname anomalies.
1210
- set norm_dir [file normalize $dir]
1211
-
1212
- namespace upvar ::safe [VarName $child] state
1213
- if {$norm_dir ni $state(access_path,norm)} {
1214
- return -code error "\"$dir\": not in access_path"
1215
- }
1216
- }
1217
-
1218
- # This procedure is used to report an attempt to use an unsafe member of an
1219
- # ensemble command.
1220
-
1221
- proc ::safe::BadSubcommand {child command subcommand args} {
1222
- set msg "not allowed to invoke subcommand $subcommand of $command"
1223
- Log $child $msg
1224
- return -code error -errorcode {TCL SAFE SUBCOMMAND} $msg
1225
- }
1226
-
1227
- # AliasEncodingSystem is the target of the "encoding system" alias in safe
1228
- # interpreters.
1229
- proc ::safe::AliasEncodingSystem {child args} {
1230
- try {
1231
- # Must not pass extra arguments; safe interpreters may not set the
1232
- # system encoding but they may read it.
1233
- if {[llength $args]} {
1234
- return -code error -errorcode {TCL WRONGARGS} \
1235
- "wrong # args: should be \"encoding system\""
1236
- }
1237
- } on error {msg options} {
1238
- Log $child $msg
1239
- return -options $options $msg
1240
- }
1241
- tailcall ::interp invokehidden $child tcl:encoding:system
1242
- }
1243
-
1244
- # Various minor hiding of platform features. [Bug 2913625]
1245
-
1246
- proc ::safe::AliasExeName {child} {
1247
- return ""
1248
- }
1249
-
1250
- # ------------------------------------------------------------------------------
1251
- # Using Interpreter Names with Namespace Qualifiers
1252
- # ------------------------------------------------------------------------------
1253
- # (1) We wish to preserve compatibility with existing code, in which Safe Base
1254
- # interpreter names have no namespace qualifiers.
1255
- # (2) safe::interpCreate and the rest of the Safe Base previously could not
1256
- # accept namespace qualifiers in an interpreter name.
1257
- # (3) The interp command will accept namespace qualifiers in an interpreter
1258
- # name, but accepts distinct interpreters that will have the same command
1259
- # name (e.g. foo, ::foo, and :::foo) (bug 66c2e8c974).
1260
- # (4) To satisfy these constraints, Safe Base interpreter names will be fully
1261
- # qualified namespace names with no excess colons and with the leading "::"
1262
- # omitted.
1263
- # (5) Trailing "::" implies a namespace tail {}, which interp reads as {{}}.
1264
- # Reject such names.
1265
- # (6) We could:
1266
- # (a) EITHER reject usable but non-compliant names (e.g. excess colons) in
1267
- # interpCreate, interpInit;
1268
- # (b) OR accept such names and then translate to a compliant name in every
1269
- # command.
1270
- # The problem with (b) is that the user will expect to use the name with the
1271
- # interp command and will find that it is not recognised.
1272
- # E.g "interpCreate ::foo" creates interpreter "foo", and the user's name
1273
- # "::foo" works with all the Safe Base commands, but "interp eval ::foo"
1274
- # fails.
1275
- # So we choose (a).
1276
- # (7) The command
1277
- # namespace upvar ::safe S$child state
1278
- # becomes
1279
- # namespace upvar ::safe [VarName $child] state
1280
- # ------------------------------------------------------------------------------
1281
-
1282
- proc ::safe::RejectExcessColons {child} {
1283
- set stripped [regsub -all -- {:::*} $child ::]
1284
- if {[string range $stripped end-1 end] eq {::}} {
1285
- return -code error {interpreter name must not end in "::"}
1286
- }
1287
- if {$stripped ne $child} {
1288
- set msg {interpreter name has excess colons in namespace separators}
1289
- return -code error $msg
1290
- }
1291
- if {[string range $stripped 0 1] eq {::}} {
1292
- return -code error {interpreter name must not begin "::"}
1293
- }
1294
- return
1295
- }
1296
-
1297
- proc ::safe::VarName {child} {
1298
- # return S$child
1299
- return S[string map {:: @N @ @A} $child]
1300
- }
1301
-
1302
- proc ::safe::Setup {} {
1303
- ####
1304
- #
1305
- # Setup the arguments parsing
1306
- #
1307
- ####
1308
- variable AutoPathSync
1309
-
1310
- # Share the descriptions
1311
- set OptList {
1312
- {-accessPath -list {} "access path for the child"}
1313
- {-noStatics "prevent loading of statically linked pkgs"}
1314
- {-statics true "loading of statically linked pkgs"}
1315
- {-nestedLoadOk "allow nested loading"}
1316
- {-nested false "nested loading"}
1317
- {-deleteHook -script {} "delete hook"}
1318
- }
1319
- if {!$AutoPathSync} {
1320
- lappend OptList {-autoPath -list {} "::auto_path for the child"}
1321
- }
1322
- set temp [::tcl::OptKeyRegister $OptList]
1323
-
1324
- # create case (child is optional)
1325
- ::tcl::OptKeyRegister {
1326
- {?child? -name {} "name of the child (optional)"}
1327
- } ::safe::interpCreate
1328
-
1329
- # adding the flags sub programs to the command program (relying on Opt's
1330
- # internal implementation details)
1331
- lappend ::tcl::OptDesc(::safe::interpCreate) $::tcl::OptDesc($temp)
1332
-
1333
- # init and configure (child is needed)
1334
- ::tcl::OptKeyRegister {
1335
- {child -name {} "name of the child"}
1336
- } ::safe::interpIC
1337
-
1338
- # adding the flags sub programs to the command program (relying on Opt's
1339
- # internal implementation details)
1340
- lappend ::tcl::OptDesc(::safe::interpIC) $::tcl::OptDesc($temp)
1341
-
1342
- # temp not needed anymore
1343
- ::tcl::OptKeyDelete $temp
1344
-
1345
- ####
1346
- #
1347
- # Default: No logging.
1348
- #
1349
- ####
1350
-
1351
- setLogCmd {}
1352
-
1353
- # Log eventually.
1354
- # To enable error logging, set Log to {puts stderr} for instance,
1355
- # via setLogCmd.
1356
- return
1357
- }
1358
-
1359
- # Accessor method for ::safe::AutoPathSync
1360
- # Usage: ::safe::setSyncMode ?newValue?
1361
- # Respond to changes by calling Setup again, preserving any
1362
- # caller-defined logging. This allows complete equivalence with
1363
- # prior Safe Base behavior if AutoPathSync is true.
1364
- #
1365
- # >>> WARNING <<<
1366
- #
1367
- # DO NOT CHANGE AutoPathSync EXCEPT BY THIS COMMAND - IT IS VITAL THAT WHENEVER
1368
- # THE VALUE CHANGES, THE EXISTING PARSE TOKENS ARE DELETED AND Setup IS CALLED
1369
- # AGAIN.
1370
- # (The initialization of AutoPathSync at the end of this file is acceptable
1371
- # because Setup has not yet been called.)
1372
-
1373
- proc ::safe::setSyncMode {args} {
1374
- variable AutoPathSync
1375
-
1376
- if {[llength $args] == 0} {
1377
- } elseif {[llength $args] == 1} {
1378
- set newValue [lindex $args 0]
1379
- if {![string is boolean -strict $newValue]} {
1380
- return -code error "new value must be a valid boolean"
1381
- }
1382
- set args [expr {$newValue && $newValue}]
1383
- if {([info vars ::safe::S*] ne {}) && ($args != $AutoPathSync)} {
1384
- return -code error \
1385
- "cannot set new value while Safe Base child interpreters exist"
1386
- }
1387
- if {($args != $AutoPathSync)} {
1388
- set AutoPathSync {*}$args
1389
- ::tcl::OptKeyDelete ::safe::interpCreate
1390
- ::tcl::OptKeyDelete ::safe::interpIC
1391
- set TmpLog [setLogCmd]
1392
- Setup
1393
- setLogCmd $TmpLog
1394
- }
1395
- } else {
1396
- set msg {wrong # args: should be "safe::setSyncMode ?newValue?"}
1397
- return -code error $msg
1398
- }
1399
-
1400
- return $AutoPathSync
1401
- }
1402
-
1403
- namespace eval ::safe {
1404
- # internal variables (must not begin with "S")
1405
-
1406
- # AutoPathSync
1407
- #
1408
- # Set AutoPathSync to 0 to give a child's ::auto_path the same meaning as
1409
- # for an unsafe interpreter: the package command will search its directories
1410
- # and first-level subdirectories for pkgIndex.tcl files; the auto-loader
1411
- # will search its directories for tclIndex files. The access path and
1412
- # module path will be maintained as separate values, and ::auto_path will
1413
- # not be updated when the user calls ::safe::interpAddToAccessPath to add to
1414
- # the access path. If the user specifies an access path when calling
1415
- # interpCreate, interpInit or interpConfigure, it is the user's
1416
- # responsibility to define the child's auto_path. If these commands are
1417
- # called with no (or empty) access path, the child's auto_path will be set
1418
- # to a tokenized form of the parent's auto_path, and these directories and
1419
- # their first-level subdirectories will be added to the access path.
1420
- #
1421
- # Set to 1 for "traditional" behavior: a child's entire access path and
1422
- # module path are copied to its ::auto_path, which is updated whenever
1423
- # the user calls ::safe::interpAddToAccessPath to add to the access path.
1424
- variable AutoPathSync 0
1425
-
1426
- # Log command, set via 'setLogCmd'. Logging is disabled when empty.
1427
- variable Log {}
1428
-
1429
- # The package maintains a state array per child interp under its
1430
- # control. The name of this array is S<interp-name>. This array is
1431
- # brought into scope where needed, using 'namespace upvar'. The S
1432
- # prefix is used to avoid that a child interp called "Log" smashes
1433
- # the "Log" variable.
1434
- #
1435
- # The array's elements are:
1436
- #
1437
- # access_path : List of paths accessible to the child.
1438
- # access_path,norm : Ditto, in normalized form.
1439
- # access_path,child : Ditto, as the path tokens as seen by the child.
1440
- # access_path,map : dict ( token -> path )
1441
- # access_path,remap : dict ( path -> token )
1442
- # auto_path : List of paths requested by the caller as child's ::auto_path.
1443
- # tm_path_child : List of TM root directories, as tokens seen by the child.
1444
- # staticsok : Value of option -statics
1445
- # nestedok : Value of option -nested
1446
- # cleanupHook : Value of option -deleteHook
1447
- #
1448
- # In principle, the child can change its value of ::auto_path -
1449
- # - a package might add a path (that is already in the access path) for
1450
- # access to tclIndex files;
1451
- # - the script might remove some elements of the auto_path.
1452
- # However, this is really the business of the parent, and the auto_path will
1453
- # be reset whenever the token mapping changes (i.e. when option -accessPath is
1454
- # used to change the access path).
1455
- # -autoPath is now stored in the array and is no longer obtained from
1456
- # the child.
1457
- }
1458
-
1459
- ::safe::Setup