tr ("TOOLS_BUT_OK") );
}
else {
- QString command = QString( getenv( "SALOME_ROOT_DIR" ) ) + "/bin/runIDLparser -Wbcatalog=" + XmlFile;
+ QString command = "";
+ if ( getenv("KERNEL_ROOT_DIR") )
+ command = QString( getenv( "KERNEL_ROOT_DIR" ) ) + "/bin/runIDLparser -Wbcatalog=" + XmlFile;
+ else {
+ QAD_MessageBox::error1( this,
+ tr("TOOLS_ERR_ERROR"),
+ tr("KERNEL_ROOT_DIR variable is not defined"),
+ tr("TOOLS_BUT_OK") );
+ }
if (!Author.isEmpty()) command += ",author=" + Author;
if (!Version.isEmpty()) command += ",version=" + Version;
if (!PngFile.isEmpty()) {