mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
bos #18341: HOME environment variable
This commit is contained in:
parent
0a37d49f45
commit
ab46000ce3
@ -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("")
|
||||
|
@ -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))
|
||||
|
@ -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)
|
||||
|
@ -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))
|
||||
|
||||
|
@ -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))
|
||||
|
@ -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("")
|
||||
|
Loading…
Reference in New Issue
Block a user