From: eficas <> Date: Tue, 7 May 2002 07:04:55 +0000 (+0000) Subject: ajout argument display X-Git-Tag: AY_av_utilites~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ffcb1a4cdf0685a7587fa205ce5bd92c5b9734a8;p=tools%2Feficas.git ajout argument display --- diff --git a/Minicode/eficas_mini.py b/Minicode/eficas_mini.py index f7990da3..281ccc8e 100755 --- a/Minicode/eficas_mini.py +++ b/Minicode/eficas_mini.py @@ -3,12 +3,17 @@ Ce module sert à lancer EFICAS configuré pour Code_Mini """ # Modules Python -import sys +import sys,os # Modules Eficas import prefs sys.path[:0]=[prefs.INSTALLDIR] +args=sys.argv[1:] +for a in args: + if a == "-display": + os.environ['DISPLAY']=args[args.index("-display")+1] + import Editeur from Editeur import eficas_go