def generateFileName( dir, prefix = None, suffix = None, extension = None,
unique = False, separator = "_", hidden = False, **kwargs ):
"""
- Generate file name by sepecified parameters. If necessary, file name
+ Generate file name by specified parameters. If necessary, file name
can be generated to be unique.
Parameters:
IF(EXISTS ${KERNEL_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${KERNEL_ROOT_DIR}/salome_adm/cmake_files")
FIND_PACKAGE(SalomeKERNEL REQUIRED)
- KERNEL_WITH_CORBA() # check whether KERNEL builded with CORBA
+ KERNEL_WITH_CORBA() # check whether KERNEL built with CORBA
ELSE(EXISTS ${KERNEL_ROOT_DIR})
MESSAGE(FATAL_ERROR "We absolutely need a Salome KERNEL, please define KERNEL_ROOT_DIR")
ENDIF(EXISTS ${KERNEL_ROOT_DIR})
IF(EXISTS ${GUI_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeGUI REQUIRED)
- SALOME_GUI_WITH_CORBA() #remove this line if you don't need GUI module builded with CORBA
+ SALOME_GUI_WITH_CORBA() #remove this line if you don't need GUI module built with CORBA
#remove unnecessary options from this list (see SALOME_GUI_MODE() macro description)
SALOME_GUI_MODE(SALOME_USE_SALOMEOBJECT SALOME_USE_OCCVIEWER SALOME_USE_VTKVIEWER SALOME_USE_PYCONSOLE
OPTIONAL SALOME_USE_PLOT2DVIEWER SALOME_USE_GLVIEWER SALOME_USE_GRAPHICSVIEW
remote_execution = true;
}
- // Log environnement
+ // Log environment
std::string log_type("");
char * get_val = GetenvThreadSafe("PARALLEL_LOG");
if (get_val)
ParserResourcesType resource_definition =
_resManager->GetResourceDefinition(params.resource_params.name.in());
- // Log environnement
+ // Log environment
std::string log_type("");
char * get_val = GetenvThreadSafe("PARALLEL_LOG");
if (get_val)
"Error in instance launching",
"Communication error",
"Error in the instance",
- "Environnement variable CAL_MODE is not set",
+ "Environment variable CAL_MODE is not set",
"Disconnected instance",
};
#
# This first list does not need a SALOME application. Only the
-# environnement is required (for example, run these script in a
+# environment is required (for example, run these script in a
# session obtained with runSession
listfiles="\
unittester.py \
return result;
}
- // Writing into the tempory file
+ // Writing into the temporary file
command = "echo Hello > " + _test_filename;
status = system(command.c_str());
if(status) {
std::ostringstream oss;
oss << status;
- result += "Error in creating tempory file ! status = ";
+ result += "Error in creating temporary file ! status = ";
result += oss.str();
return result;
}
params[Batch::LAUNCHER_FILE] = _launcher_file;
params[Batch::LAUNCHER_ARGS] = _launcher_args;
- // If result_directory is not defined, we use HOME environnement
+ // If result_directory is not defined, we use HOME environment
if (_result_directory == "")
#ifndef WIN32
_result_directory = getenv("HOME");
CORBA::Object_var theObj;
CORBA::Object_var obj;
- // searchin for naming service for 0.25*40=10 seconds
+ // searching for naming service for 0.25*40=10 seconds
for (i = 1; i <= NumberOfTries; i++) {
#ifndef WIN32
if (i != 1) nanosleep(&ts_req,&ts_rem);
static std::string getStudyScript(SALOMEDSImpl_Study* study, int savePoint, const std::string& theID = "");
/*!
- Returns a default Python script that set ups visual parameters for the given module
- shift is a string that contain spaces to make valid Python script indentaion
+ Returns a default Python script that sets up visual parameters for the given module
+ shift is a string that contain spaces to make valid Python script indentation
*/
static std::string getDefaultScript(SALOMEDSImpl_Study* study,
const std::string& moduleName,
#define MESS_END std::endl; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, os.str().c_str());
#define MESS_ABORT std::endl; LocalTraceBufferPool::instance()->insert(ABORT_MESS, os.str().c_str());
-// Macroses for messages with separated structure in c++ file in _DUBUG mode
+// Macros for messages with separated structure in c++ file in _DEBUG mode
#define MESSAGE_BEGIN(msg) {std::ostringstream ss; ss <<__FILE__ <<" ["<<__LINE__<<"] : "<< msg; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, ss.str().c_str());}
#define MESSAGE_ADD(msg) {std::ostringstream ss; ss << msg; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, ss.str().c_str());}
#define MESSAGE_END(msg) {std::ostringstream ss; ss << msg << std::endl; LocalTraceBufferPool::instance()->insert(NORMAL_MESS, ss.str().c_str());}