Page 1 of 1

sourcepath different in texis 6

Posted: Mon Dec 10, 2012 7:12 pm
by tboyer
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?

sourcepath different in texis 6

Posted: Tue Dec 11, 2012 10:19 am
by Kai
<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))>