TOC PREV NEXT INDEX

 


Accessing Wrapped Files Relative to a Script's Directory


A common trick to avoid hard-wiring pathnames into scripts is to figure out where the script is located with the info script command and then accessing files relative to the script's directory. For example:


set home [file dirname [info script]]
source [file join $home help.tcl]
source [file join $home display.tcl]



http://www.ajubasolutions.com
Voice: (650) 210-0100
Fax: (650) 210-0101
support@ajubasolutions.com
TOC PREV NEXT INDEX