Salome HOME
Missing command to copy __init__.py
authorYoann AUDOUIN <B61570@dsp0761867.postes.calibre.edf.fr>
Tue, 6 Jun 2017 14:23:10 +0000 (16:23 +0200)
committerYoann AUDOUIN <B61570@dsp0761867.postes.calibre.edf.fr>
Tue, 6 Jun 2017 14:34:32 +0000 (16:34 +0200)
src/HYDROGUI/HYDROSOLVERGUI.py
src/salome_hydro/telemac2d/CMakeLists.txt

index 7f95c1e3f897aad88e78db01b118d9b9b84b6c88..0b41bd0cc85eb9bb7bc2b36e260e5951dbd58268 100755 (executable)
@@ -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 )
index f52adbc60a7a9e2dc0e3fec2668a40b4ad96c60c..4d6aedc6701ca8d1df1f4c2d4a4266cf6ff22268 100644 (file)
 #  You should have received a copy of the GNU General Public License
 #  along with SALOME HYDRO module.  If not, see <http://www.gnu.org/licenses/>.
 
+# --- 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)