From 4959c034c29ed980a30b857e4630ea00751d7cb7 Mon Sep 17 00:00:00 2001 From: Yoann AUDOUIN Date: Tue, 6 Jun 2017 16:23:10 +0200 Subject: [PATCH] Missing command to copy __init__.py --- src/HYDROGUI/HYDROSOLVERGUI.py | 6 +++++- src/salome_hydro/telemac2d/CMakeLists.txt | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/HYDROGUI/HYDROSOLVERGUI.py b/src/HYDROGUI/HYDROSOLVERGUI.py index 7f95c1e..0b41bd0 100755 --- a/src/HYDROGUI/HYDROSOLVERGUI.py +++ b/src/HYDROGUI/HYDROSOLVERGUI.py @@ -421,12 +421,16 @@ def run_telemac2d(): "see logs and listing files for more details):")) msg += "\n" + unicode(exc) raise HSGUIException(msg) + +### # Generate a python script from the eficas file +### def generate_telemac2d_python(): try: with wait_cursor: ed = hydro_study.HydroStudyEditor() - sobj = ed.editor.study.FindObjectID(salome.sg.getSelected(0)) + sobj = get_and_check_selected_file_path() + print sobj ed.find_or_create_telemac2d_case(sobj) except SALOME.SALOME_Exception, exc: salome.sg.updateObjBrowser( 0 ) diff --git a/src/salome_hydro/telemac2d/CMakeLists.txt b/src/salome_hydro/telemac2d/CMakeLists.txt index f52adbc..4d6aedc 100644 --- a/src/salome_hydro/telemac2d/CMakeLists.txt +++ b/src/salome_hydro/telemac2d/CMakeLists.txt @@ -15,8 +15,16 @@ # You should have received a copy of the GNU General Public License # along with SALOME HYDRO module. If not, see . +# --- Python files --- + SET(PYFILES __init__.py ) +SET(INSTALL_DIR ${SALOME_INSTALL_PYTHON}/salome/hydro/telemac2d) + +# --- rules --- + +SALOME_INSTALL_SCRIPTS("${PYFILES}" ${INSTALL_DIR}) + ADD_SUBDIRECTORY(eficas) -- 2.39.2