I have two tcl scripts, one of which calls the other. The second script, 'version.tcl' is in a sub-directory ('synthesis') of the working directory.
I currently have it set up and working in the following fashion:
cd ./synthesis
source version.tcl
cd ../
I would like to condense that to one command which can source the script without having to change directories, something along the lines of:
source [file join [file join [[pwd] synthesis] version.tcl]]
Or
source ./synthesis/version.tcl
Unfortunately neither one of the above commands works. I know this should be an easy fix for someone with more familiarity with tcl than me, so any help would be greatly appreciated.
source ./syntheses/version.tclworks fine. Perhaps in the "main" script, yourpwdisn't what you think it is.file joincalls: this is fine:file join [pwd] synthesis version.tclsource ./synthesis/version.tclworks. If you need more help, describe in more detail how it doesn't work (error message etc).