c4brian Posted April 23, 2015 Report Share Posted April 23, 2015 Does anyone know how to display the pathname of the currently running script in RivieraPro? Note** This is when executing the script using the "Do" Command (Gear icon), not the "source" command. aka [info script] returns an empty string, so that's out. Quote Link to comment Share on other sites More sharing options...
kirloy Posted April 28, 2015 Report Share Posted April 28, 2015 You can have procedures proc mydo {arg} { global RUNNING_SCRIPT_NAME set RUNNING_SCRIPT_NAME $arg do $RUNNING_SCRIPT_NAME } proc whatami {} { global RUNNING_SCRIPT_NAME echo $RUNNING_SCRIPT_NAME } And then run yours script: mydo 2.do Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.