logger.write("\n", 3, False)
return 0
+ if not os.path.isfile(p_info.compil_script):
+ msg_err="\n\nError : The compilation script file do not exists!"+\
+ "\n It was not found by sat!"+\
+ "\n Please check your salomeTool configuration\n"
+ logger.error(msg_err)
+ return 1
+
# Instantiate the class that manages all the construction commands
# like cmake, make, make install, make test, environment management, etc...
builder = src.compilation.Builder(config, logger, p_info)
write sys.stderr a message if _debug[-1]==True or optionaly force=True
use this only if no logger accessible for classic logger.warning(message)
"""
- fmt = "\n#### TOFIX: %s:\n%s\n"
- write(title, var, force, fmt)
+ if _debug[-1] or isDeveloper():
+ fmt = "\n#### TOFIX: %s:\n%s\n"
+ write(title, var, force, fmt)
def push_debug(aBool):
"""set debug outputs activated, or not"""
res = True
else:
res = False
- DBG.write("isCurrentLoggerUnittest %s" % logger.name, res)
+ #DBG.write("isCurrentLoggerUnittest %s" % logger.name, res)
return res
def sendMessageToCurrentLogger(message, level):
if not script_path:
msg = _("Compilation script %s not found in") % script_name
DBG.tofix(msg, config.PATHS.PRODUCTPATH, True) # say where searched
- # avoid stop if sat prepare, script could be included in sources, only warning
- # raise src.SatException(msg)
- script_path = "*** Not Found: %s" % script_name
+ script_path = "%s_(Not_Found_by_Sat!!)" % script_name
prod_info.compil_script = script_path
# Check that the script is executable
if os.path.exists(prod_info.compil_script) and not os.access(prod_info.compil_script, os.X_OK):
- #raise src.SatException(
- # _("Compilation script cannot be executed: %s") %
- # prod_info.compil_script)
- # just as warning, problem later...
DBG.tofix("Compilation script file is not in 'execute mode'", prod_info.compil_script, True)
# Get the full paths of all the patches