apnadkarni / ruff

Documentation generator for Tcl
https://ruff.magicsplat.com
BSD 2-Clause "Simplified" License
14 stars 3 forks source link

package require Tk #79

Open aplsimple opened 1 year ago

aplsimple commented 1 year ago

Ruff! requires Tcl at start:

package require Tcl 8.6

It will be fine to add Tk (or an option for this):

package require Tcl 8.6
package require Tk 8.6
wm withdraw .

...because some scripts don't use "package require Tk" command, given that a main script does it. And Ruff! can fail on such scripts if they contain some initializing code with Tk commands (e.g. customizing fonts).

apnadkarni commented 1 day ago

Sorry, don't remember noticing this ticket before.

Can't you use the -preval option for this to load Tk or any other packages?