import sys, os
+import string
#sys.path.append(os.path.join(os.environ['MEDFILE_ROOT_DIR'], 'lib/python2.7/site-packages/med'))
#sys.path.append(os.path.join(os.environ['MEDFICHIER_INSTALL_DIR'], 'lib/python2.7/site-packages/med'))
hydro_solver_root = os.path.join(os.environ['HYDROSOLVER_ROOT_DIR'], 'lib', 'python2.7', 'site-packages', 'salome', 'salome', 'hydro')
mask = "*.py"
fname, filt = QFileDialog.getSaveFileName( self, caption, ".", mask )
if fname!=None and fname!="":
+ if string.split(fname, '.')[-1] != 'py':
+ fname += '.py'
self.OutputPath.setText( fname )
def onMEDFile( self ):