From ffcb1a4cdf0685a7587fa205ce5bd92c5b9734a8 Mon Sep 17 00:00:00 2001 From: eficas <> Date: Tue, 7 May 2002 07:04:55 +0000 Subject: [PATCH] ajout argument display --- Minicode/eficas_mini.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.2