"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 )
# 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)