From 6980ccfd3d6d4a3ab93ff355db042f2e35251afe Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 1 Apr 2014 14:38:40 +0400 Subject: [PATCH] Rollback the comment generation. --- src/Macro/CMakeLists.txt | 22 +--------------------- src/Macro/modes.py | 4 ---- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/Macro/CMakeLists.txt b/src/Macro/CMakeLists.txt index 33bced28..2a8ad152 100644 --- a/src/Macro/CMakeLists.txt +++ b/src/Macro/CMakeLists.txt @@ -21,24 +21,4 @@ SET(_PYFILES_TO_INSTALL 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) diff --git a/src/Macro/modes.py b/src/Macro/modes.py index 731f6aea..eaf168fb 100644 --- a/src/Macro/modes.py +++ b/src/Macro/modes.py @@ -17,10 +17,6 @@ # 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() -- 2.39.2