If I allow the user to kick-off the tcl/tk script from any directory location (the script is in a $PATH dir), and within the script I'm "open"ing a file to read, how can I locate that file within the script prior to the open cmd if the file isn't within the current directory from where the users kick-offs the script. I guess I could use "exec find / -name somefile.txt" and then read the directory portion only, but I'm wondering if tcl has a better way.
Note: I turn my scripts into full-blown executables using prowrap, thus allowing me to distribute the program and avoid the need for tcl to be installed on client's system (plus they can't see the code!).
Note: I turn my scripts into full-blown executables using prowrap, thus allowing me to distribute the program and avoid the need for tcl to be installed on client's system (plus they can't see the code!).