modes.py
)
-# Add warning message into scripts to be installed
-INSTALL(CODE "
- SET(warning_str \"\# DO NOT MAKE CHANGES to this file, it will be rewrote
-\# on activation of SALOME PARAVIS module.
-\# Modify the source file instead.\")
-
- FOREACH(file ${_PYFILES_TO_INSTALL})
- SET(tmp_file tmp/\${file})
- FILE(READ ${CMAKE_CURRENT_SOURCE_DIR}/\${file} tmp_string)
- STRING(REPLACE \"\# Do not touch this anchor comment\" \"\${warning_str}\" new_tmp_string \${tmp_string})
- FILE(WRITE \${tmp_file} \${new_tmp_string})
- ENDFOREACH()
-")
-
-# Install of the modified scripts
-FOREACH(file ${_PYFILES_TO_INSTALL})
- INSTALL_AND_COMPILE_PYTHON_FILE(${CMAKE_CURRENT_BINARY_DIR}/tmp/\${file} ${SALOME_INSTALL_SCRIPT_PYTHON}/Macro)
-ENDFOREACH()
-
-SET(MAKE_CLEAN_FILES tmp)
-SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${MAKE_CLEAN_FILES}")
+INSTALL_AND_COMPILE_PYTHON_FILE("${_PYFILES_TO_INSTALL}" ${SALOME_INSTALL_SCRIPT_PYTHON}/Macro)
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-#
-# Do not touch this anchor comment
-#
-
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()