Jump to content

Recommended Posts

Posted

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.

Posted

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...