TABLE OF CONTENTS
::pwtk::import
SYNOPSIS
proc ::pwtk::import {scriptFile} {
PURPOSE
Import the specified pwtk-script file. This is like the Tcl source command, but handels correctly the sourcing from various directories.
ARGUMENTS
- scriptFile -- name of the pwtk script to import.
SOURCE
set here [pwd] set dir [file dirname $scriptFile] set file [file tail $scriptFile] cd $dir uplevel "source $file" cd $here }