Variables for MGCleaner/Yams are already set in the Salome environment

This commit is contained in:
ctn 2015-10-28 13:38:46 +01:00 committed by vsr
parent 03335084a6
commit 733276c6f7
2 changed files with 0 additions and 34 deletions

View File

@ -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'

View File

@ -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'