I have a main C++ program which interfaces to TCL. I can source a TCL file so long as it has an explicit file path which works well:
Tcl_EvalFile( interp, "c:/Software/emPackage.tcl" );
However, when I try to make it a little more location independent, it fails to locate the file
Tcl_EvalFile( interp, "[file join [file dirname [info script]] emPackage.tcl]" );
What is the best way to make a software package location independ, since users may install it in a variety of different locations?
Tcl_EvalFile( interp, "c:/Software/emPackage.tcl" );
However, when I try to make it a little more location independent, it fails to locate the file
Tcl_EvalFile( interp, "[file join [file dirname [info script]] emPackage.tcl]" );
What is the best way to make a software package location independ, since users may install it in a variety of different locations?