/* Check for MGC_HOME */
mgc_home = getShellEnvVar("MGC_HOME")
if( mgc_home!=nil && isReadable(mgc_home) then
load(strcat(mgc_home "/shared/pkgs/icv/tools/queryskl/calibre.skl"))
else
; MGC_HOME is not set correctly. Report the problem.
printf("// Calibre Error: Environment variable ")
if( mgc_home==nil || mgc_home=="" then
printf("MGC_HOME is not set.");
else
if( !isDir(mgc_home) then
printf("MGC_HOME does not point to a directory.");
else
if( !isReadable(mgc_home) then
printf("MGC_HOME points to an unreadable directory.");
)
)
)
printf(" Calibre Skill Interface not loaded.\n")
)