Say you are debugging a tcl package and have a local copy to debug.
To make the tcl script pick up the local copy of the package:
- If the tcl script is editable, append to auto_path as
Note that you would need to create a pkgIndex.tcl in the directory where your local copy exists.
set auto_path "./src $::auto_path"
package require Foo
- If the tcl script is not-editable, use TCLLIBPATH env var. Haven't tried it though.
o&o
No comments:
Post a Comment