sourcepath different in texis 6

Post Reply
tboyer
Posts: 68
Joined: Mon Aug 28, 2006 4:43 pm

sourcepath different in texis 6

Post 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?
User avatar
Kai
Site Admin
Posts: 1271
Joined: Tue Apr 25, 2000 1:27 pm

sourcepath different in texis 6

Post 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))>
Post Reply