bos #18341: HOME environment variable

This commit is contained in:
jfa 2020-04-14 11:47:24 +03:00 committed by vsr
parent 0a37d49f45
commit ab46000ce3
6 changed files with 6 additions and 6 deletions

View File

@ -69,7 +69,7 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
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("")

View File

@ -81,7 +81,7 @@ class MGCleanerMonViewText(Ui_ViewExe, QDialog):
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))

View File

@ -24,7 +24,7 @@ import subprocess
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)

View File

@ -36,7 +36,7 @@ class Job:
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))

View File

@ -80,7 +80,7 @@ class MonViewText(Ui_ViewExe, QDialog):
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))

View File

@ -69,7 +69,7 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget):
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("")