set(ADAO_SCRIPT_PYTHON "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages")
set(ADAO_SCRIPT_PYTHON_SALOME "${ADAO_SCRIPT_PYTHON}/salome")
set(ADAO_LIB "lib/salome")
-set(ADAO_RES "share/salome/resources/adao")
-set(ADAO_BIN "bin/salome")
-set(ADAO_BIN_TEST "bin/salome/test")
+set(ADAO_RES "share/resources/adao")
+set(ADAO_RES_SALOME "share/salome/resources/adao")
+set(ADAO_BIN "bin")
+set(ADAO_BIN_TEST "bin/test")
set(CONFIGURATION_ROOT_DIR $ENV{CONFIGURATION_ROOT_DIR} CACHE PATH "Path to the Salome CMake configuration files")
if(EXISTS ${CONFIGURATION_ROOT_DIR})
logging.debug("-- Starting AdaoYacsSchemaCreator --")
# Check some basics variables
-if "ADAO_ROOT_DIR" not in os.environ:
- logging.fatal("You have to define ADAO_ROOT_DIR")
+if "ADAO_ENGINE_ROOT_DIR" not in os.environ:
+ logging.fatal("You have to define ADAO_ENGINE_ROOT_DIR")
sys.exit(1)
try:
# Configuration de l'installation
INSTALLDIR = "@EFICAS_DIR@"
sys.path.insert(0,INSTALLDIR)
-ADAO_INSTALL_DIR = "@PYTHON_SITE@/salome/adao/daEficas"
+ADAO_INSTALL_DIR = "@PYTHON_SITE@/adao/daEficas"
sys.path.insert(0,ADAO_INSTALL_DIR)
# Configuration
# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
set(DOCLANG en)
-set(DOC_DESTINATION "share/doc/salome/gui/ADAO/${DOCLANG}")
+set(DOC_DESTINATION "share/doc/gui/ADAO/${DOCLANG}")
file(GLOB_RECURSE BEAUTIFUL_PNGS "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.png")
install(FILES ${BEAUTIFUL_PNGS} DESTINATION ${ADAO_RES})
else
SALOMEDIR="<SALOME main installation directory>"
$SALOMEDIR/salome start -k -t
- $SALOMEDIR/salome shell -- "python $SALOMEDIR/bin/salome/AdaoYacsSchemaCreator.py $USERFILE.py $USERFILE.xml"
+ $SALOMEDIR/salome shell -- "python $SALOMEDIR/bin/AdaoYacsSchemaCreator.py $USERFILE.py $USERFILE.xml"
$SALOMEDIR/salome shell -- "driver $USERFILE.xml"
$SALOMEDIR/salome shell killSalome.py
rm -f $USERFILE.xml
# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
set(DOCLANG fr)
-set(DOC_DESTINATION "share/doc/salome/gui/ADAO/${DOCLANG}")
+set(DOC_DESTINATION "share/doc/gui/ADAO/${DOCLANG}")
file(GLOB_RECURSE BEAUTIFUL_PNGS "${CMAKE_SOURCE_DIR}/doc/${DOCLANG}/*.png")
install(FILES ${BEAUTIFUL_PNGS} DESTINATION ${ADAO_RES})
else
SALOMEDIR="<Répertoire principal d'installation de SALOME>"
$SALOMEDIR/salome start -k -t
- $SALOMEDIR/salome shell -- "python $SALOMEDIR/bin/salome/AdaoYacsSchemaCreator.py $USERFILE.py $USERFILE.xml"
+ $SALOMEDIR/salome shell -- "python $SALOMEDIR/bin/AdaoYacsSchemaCreator.py $USERFILE.py $USERFILE.xml"
$SALOMEDIR/salome shell -- "driver $USERFILE.xml"
$SALOMEDIR/salome shell killSalome.py
rm -f $USERFILE.xml
daSalome/test010_ADAO_Simple_AdjointTest.py
)
-install(FILES ${EXAMPLES_FILES_TO_INSTALL} DESTINATION "share/salome/adao_examples/daSalome")
+install(FILES ${EXAMPLES_FILES_TO_INSTALL} DESTINATION "share/adao_examples/daSalome")
SALOME_CONFIGURE_FILE(daSkeletons/External_data_definition_by_scripts/ADAO_Case.comm.in ADAO_Case.comm)
daSkeletons/External_data_definition_by_scripts/Script_Observation_yo.py
)
-install(FILES ${SKELETON_FILES_TO_INSTALL} DESTINATION "share/salome/adao_examples/daSkeletons/External_data_definition_by_scripts")
+install(FILES ${SKELETON_FILES_TO_INSTALL} DESTINATION "share/adao_examples/daSkeletons/External_data_definition_by_scripts")
ASSIMILATION_STUDY(StudyName='Test',
- StudyRepertory='@prefix@/share/salome/adao_examples/daSalome',
+ StudyRepertory='@prefix@/share/adao_examples/daSalome',
AlgorithmParameters=_F(Algorithm='3DVAR',),
Background=_F(INPUT_TYPE='Vector',
data=_F(FROM='Script',
outputvariables_config['Order'] = ['adao_default']
outputvariables_config['adao_default'] = -1
study_config['OutputVariables'] = outputvariables_config
-study_config['Repertory'] = '@prefix@/share/salome/adao_examples/daSalome'
+study_config['Repertory'] = '@prefix@/share/adao_examples/daSalome'
Analysis_config = {}
Analysis_config['From'] = 'String'
Analysis_config['Data'] = """import numpy
ASSIMILATION_STUDY(StudyName='Test',
- StudyRepertory='@prefix@/share/salome/adao_examples/daSalome',
+ StudyRepertory='@prefix@/share/adao_examples/daSalome',
AlgorithmParameters=_F(Algorithm='3DVAR',),
Background=_F(INPUT_TYPE='Vector',
data=_F(FROM='Script',
outputvariables_config['Order'] = ['adao_default']
outputvariables_config['adao_default'] = -1
study_config['OutputVariables'] = outputvariables_config
-study_config['Repertory'] = '@prefix@/share/salome/adao_examples/daSalome'
+study_config['Repertory'] = '@prefix@/share/adao_examples/daSalome'
Analysis_config = {}
Analysis_config['From'] = 'String'
Analysis_config['Data'] = """import numpy
ASSIMILATION_STUDY(StudyName='Test',
- StudyRepertory='@prefix@/share/salome/adao_examples/daSalome',
+ StudyRepertory='@prefix@/share/adao_examples/daSalome',
AlgorithmParameters=_F(Algorithm='Blue',),
Background=_F(INPUT_TYPE='Vector',
data=_F(FROM='Script',
outputvariables_config['Order'] = ['adao_default']
outputvariables_config['adao_default'] = -1
study_config['OutputVariables'] = outputvariables_config
-study_config['Repertory'] = '@prefix@/share/salome/adao_examples/daSalome'
+study_config['Repertory'] = '@prefix@/share/adao_examples/daSalome'
Analysis_config = {}
Analysis_config['From'] = 'String'
Analysis_config['Data'] = """import numpy
ASSIMILATION_STUDY(StudyName='Test',
- StudyRepertory='@prefix@/share/salome/adao_examples/daSalome',
+ StudyRepertory='@prefix@/share/adao_examples/daSalome',
AlgorithmParameters=_F(Algorithm='3DVAR',),
Background=_F(Stored=1,
INPUT_TYPE='Vector',
outputvariables_config['Order'] = ['adao_default']
outputvariables_config['adao_default'] = -1
study_config['OutputVariables'] = outputvariables_config
-study_config['Repertory'] = '@prefix@/share/salome/adao_examples/daSalome'
+study_config['Repertory'] = '@prefix@/share/adao_examples/daSalome'
Analysis_config = {}
Analysis_config['From'] = 'String'
Analysis_config['Data'] = """import numpy
ASSIMILATION_STUDY(StudyName='test_observers',
- StudyRepertory='@prefix@/share/salome/adao_examples/daSalome',
+ StudyRepertory='@prefix@/share/adao_examples/daSalome',
AlgorithmParameters=_F(Algorithm='3DVAR',
Parameters='Dict',
data=_F(FROM='Script',
outputvariables_config['Order'] = ['adao_default']
outputvariables_config['adao_default'] = -1
study_config['OutputVariables'] = outputvariables_config
-study_config['Repertory'] = '@prefix@/share/salome/adao_examples/daSalome'
+study_config['Repertory'] = '@prefix@/share/adao_examples/daSalome'
Analysis_config = {}
Analysis_config['From'] = 'String'
Analysis_config['Data'] = """import numpy
ASSIMILATION_STUDY(StudyName='ADAO skeleton case',
- StudyRepertory='@prefix@/share/salome/adao_examples/daSkeletons/External_data_definition_by_scripts',
+ StudyRepertory='@prefix@/share/adao_examples/daSkeletons/External_data_definition_by_scripts',
AlgorithmParameters=_F(Algorithm='3DVAR',
Parameters='Dict',
data=_F(FROM='Script',
outputvariables_config['Order'] = ['adao_default']
outputvariables_config['adao_default'] = -1
study_config['OutputVariables'] = outputvariables_config
-study_config['Repertory'] = '@prefix@/share/salome/adao_examples/daSkeletons/External_data_definition_by_scripts'
+study_config['Repertory'] = '@prefix@/share/adao_examples/daSkeletons/External_data_definition_by_scripts'
Analysis_config = {}
Analysis_config['From'] = 'Script'
Analysis_config['Data'] = 'Script_UserPostAnalysis.py'
# Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
if(ADAO_SALOME_MODULE)
- install(FILES SalomeApp.xml ADAOCatalog.xml DESTINATION ${ADAO_RES})
+ install(FILES SalomeApp.xml ADAOCatalog.xml DESTINATION ${ADAO_RES_SALOME})
else(ADAO_SALOME_MODULE)
install(FILES ADAOSchemaCatalog.xml DESTINATION ${ADAO_RES})
endif(ADAO_SALOME_MODULE)
</section>
<section name="resources">
<!-- Module resources -->
- <parameter name="ADAO" value="${ADAO_ENGINE_ROOT_DIR}/share/salome/resources/adao"/>
+ <parameter name="ADAO" value="${ADAO_ENGINE_ROOT_DIR}/share/resources/adao"/>
</section>
<section name="adao_help">
- <parameter name="User's Guide/%1 module/(EN) User's Guide" value="${ADAO_ENGINE_ROOT_DIR}/share/doc/salome/gui/ADAO/en/index.html"/>
- <parameter name="User's Guide/%1 module/(FR) Guide de l'utilisateur" value="${ADAO_ENGINE_ROOT_DIR}/share/doc/salome/gui/ADAO/fr/index.html"/>
+ <parameter name="User's Guide/%1 module/(EN) User's Guide" value="${ADAO_ENGINE_ROOT_DIR}/share/doc/gui/ADAO/en/index.html"/>
+ <parameter name="User's Guide/%1 module/(FR) Guide de l'utilisateur" value="${ADAO_ENGINE_ROOT_DIR}/share/doc/gui/ADAO/fr/index.html"/>
</section>
</document>
# Indique la langue du catalogue utilisee pour les chaines d'aide : fr ou ang
# lang = 'fr'
# Traduction des labels de boutons ou autres
-translatorFichier = os.environ["ADAO_ROOT_DIR"] + "/share/salome/resources/adao/adao" # Ce nom sera complete par EFICAS avec _<LANG>.qm
+translatorFichier = os.environ["ADAO_ROOT_DIR"] + "/share/resources/adao/adao" # Ce nom sera complete par EFICAS avec _<LANG>.qm
#
# Pilotage des sous-fenetres d'EFICAS
closeAutreCommande = True
return "Please add ADAO_ENGINE_ROOT_DIR to your environnement."
adao_path = os.environ["ADAO_ENGINE_ROOT_DIR"]
- adao_exe = adao_path + "/bin/salome/AdaoYacsSchemaCreator.py"
+ adao_exe = adao_path + "/bin/AdaoYacsSchemaCreator.py"
args = ["python", adao_exe, filename, self.yacs_filename]
p = subprocess.Popen(args)
(stdoutdata, stderrdata) = p.communicate()
l.registerProcCataLoader()
runtime = pilot.getRuntime()
try:
- catalogAd = runtime.loadCatalog("proc", os.environ["ADAO_ENGINE_ROOT_DIR"] + "/share/salome/resources/adao/ADAOSchemaCatalog.xml")
+ catalogAd = runtime.loadCatalog("proc", os.environ["ADAO_ENGINE_ROOT_DIR"] + "/share/resources/adao/ADAOSchemaCatalog.xml")
runtime.addCatalog(catalogAd)
except:
raise ValueError("Exception in loading ADAO YACS Schema catalog")