Yes, it is kind of a misleading name, but
system.path.origin$
is what you need.
Also available as %X
string strProjPath$="%X";
string str1$ = system.path.origin$;
if(str1!=strProjPath$)
type "something is wrong";
else
type "ok";
This link gives all the system string registers:
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:String_registers
and this one for the system object:
http://wiki.originlab.com/~originla/wiki/index.php?title=LabTalk:System.Path_%28object%29
CP