We're finding that sourcepath is no longer giving us a complete path if we run it from the command line. Both $sourcepath and <vxinfo sourcepath> return just the name of the script. Did something change in Texis 6? A configuration thing we need to set?
<vxinfo sourcepath> should be the same in version 5 and 6; it's the path to the script, as invoked. It will be absolute if the script was invoked with an absolute path (or via CGI), or relative if invoked with a relative path (only possible from command line).
You can make the path absolute with the SQL function canonpath():
<vxinfo sourcepath>
<$ret = (canonpath($ret))>