There are two or more scripts.
Script A
#Script A
setenv K1 V1
Script B
#Script B
source "script A"
# some code
When I run script B from its location its work fine.
But I need to run it from some other location like:
_> /some/other/location/ # tclsh pathtoscriptB/script.tcl
It giving error
couldn't read file "script A": no such file or directory.
Note : Location of script can be changed according to user who use it.
source "$pathtoscriptA/script.tcl"?