mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
Variables for MGCleaner/Yams are already set in the Salome environment
This commit is contained in:
parent
03335084a6
commit
733276c6f7
@ -51,23 +51,6 @@ class MGCleanerMonViewText(Ui_ViewExe, QDialog):
|
||||
# Je n arrive pas a utiliser le setEnvironment du QProcess
|
||||
# fonctionne hors Salome mais pas dans Salome ???
|
||||
cmds=''
|
||||
try :
|
||||
LICENCE_FILE=os.environ["DISTENE_LICENCE_FILE_FOR_MGCLEANER"]
|
||||
except:
|
||||
LICENCE_FILE=''
|
||||
try :
|
||||
PATH=os.environ["DISTENE_PATH_FOR_MGCLEANER"]
|
||||
except:
|
||||
PATH=''
|
||||
if LICENCE_FILE != '':
|
||||
cmds+='source '+LICENCE_FILE+'\n'
|
||||
else:
|
||||
cmds+="# $DISTENE_LICENCE_FILE_FOR_MGCLEANER NOT SET\n"
|
||||
if PATH != '':
|
||||
cmds+='export PATH='+PATH+':$PATH\n'
|
||||
else:
|
||||
cmds+="# $DISTENE_PATH_FOR_MGCLEANER NOT SET\n"
|
||||
#cmds+='env\n'
|
||||
cmds+='rm -f '+self.parent().fichierOut+'\n'
|
||||
cmds+=txt+'\n'
|
||||
cmds+='echo END_OF_MGCleaner\n'
|
||||
|
@ -49,23 +49,6 @@ class MonViewText(Ui_ViewExe, QDialog):
|
||||
# Je n arrive pas a utiliser le setEnvironment du QProcess
|
||||
# fonctionne hors Salome mais pas dans Salome ???
|
||||
cmds=''
|
||||
try :
|
||||
LICENCE_FILE=os.environ["DISTENE_LICENCE_FILE_FOR_YAMS"]
|
||||
except:
|
||||
LICENCE_FILE=''
|
||||
try :
|
||||
PATH=os.environ["DISTENE_PATH_FOR_YAMS"]
|
||||
except:
|
||||
PATH=''
|
||||
if LICENCE_FILE != '':
|
||||
cmds+='source '+LICENCE_FILE+'\n'
|
||||
else:
|
||||
cmds+="# $DISTENE_LICENCE_FILE_FOR_YAMS NOT SET\n"
|
||||
if PATH != '':
|
||||
cmds+='export PATH='+PATH+':$PATH\n'
|
||||
else:
|
||||
cmds+="# $DISTENE_PATH_FOR_YAMS NOT SET\n"
|
||||
#cmds+='env\n'
|
||||
cmds+='rm -f '+self.parent().fichierOut+'\n'
|
||||
cmds+=txt+'\n'
|
||||
cmds+='echo END_OF_Yams\n'
|
||||
|
Loading…
Reference in New Issue
Block a user