Forum Discussion
Altera_Forum
Honored Contributor
16 years agoOk. I suppose the problem is that the path changes in change_dir_script, but remains the old one when returning to the top script. I would suggest one of the following:
1. Change the dir in the top script source compile_script.tcl set dirname D:/tcl_test set sysdir $dirname cd $dirname source compile_script.tcl 2. Use relative paths in the compile scripts, referring to the initial dir where the top script is invoked.