self.PB_MeshFile.setToolTip("source mesh from a file in disk")
#Ces parametres ne sont pas remis a rien par le clean
- self.paramsFile= os.path.abspath(os.path.join(os.environ["HOME"],".MGCleaner.dat"))
+ self.paramsFile= os.path.abspath(os.path.join(os.path.expanduser("~"),".MGCleaner.dat"))
self.LE_ParamsFile.setText(self.paramsFile)
self.LE_MeshFile.setText("")
self.LE_MeshSmesh.setText("")
def saveFile(self):
#recuperation du nom du fichier
- savedir=os.environ['HOME']
+ savedir=os.path.expanduser("~")
fn, mask = QFileDialog.getSaveFileName(None,"Save File",savedir)
if not fn: return
ulfile = os.path.abspath(str(fn))
def Chercheversion(salomePath):
- home=os.environ['HOME']
+ home=os.path.expanduser("~")
commande=os.path.abspath(os.path.join(home,salomePath,'salome'))
argus="--version"
p = subprocess.Popen([commande,argus], stdout=subprocess.PIPE)
def execute(self):
- home=os.environ['HOME']
+ home=os.path.expanduser("~")
commande=os.path.abspath(os.path.join(home,self.salomePath,"salome"))
script= os.path.abspath(os.path.join(os.path.abspath(__file__),'../..',self.script))
def saveFile(self):
#recuperation du nom du fichier
- savedir=os.environ['HOME']
+ savedir=os.path.expanduser("~")
fn, mask = QFileDialog.getSaveFileName(None,"Save File",savedir)
if not fn: return
ulfile = os.path.abspath(str(fn))
self.PB_MeshFile.setToolTip("source mesh from a file in disk")
#Ces parametres ne sont pas remis a rien par le clean
- self.paramsFile= os.path.abspath(os.path.join(os.environ["HOME"],".MGSurfOpt.dat"))
+ self.paramsFile= os.path.abspath(os.path.join(os.path.expanduser("~"),".MGSurfOpt.dat"))
self.LE_ParamsFile.setText(self.paramsFile)
self.LE_MeshFile.setText("")
self.LE_MeshSmesh.setText("")