From: prascle Date: Thu, 25 Mar 2004 08:15:59 +0000 (+0000) Subject: PR: 5525 correction proposal X-Git-Tag: V1_4_0_withMPI~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f29400c482fb529bf4ac5b57823f9a5275f4bd70;p=modules%2Fkernel.git PR: 5525 correction proposal --- diff --git a/bin/runSalome.py b/bin/runSalome.py index d3f2de288..d8f148c90 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -150,15 +150,17 @@ if "SUPERV" in liste_modules:with_container_superv=1 class Server: CMD=[] if with_xterm: - ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold', '-e'] + ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold'] else: ARGS=[] def run(self): - # (Debian) Transfert variable LD_LIBRARY_PATH aux shells fils (xterm) - env_ld_library_path=['env', 'LD_LIBRARY_PATH='+ os.getenv("LD_LIBRARY_PATH")] - args = self.ARGS+ env_ld_library_path + self.CMD - args = self.ARGS+self.CMD + args=self.ARGS + if with_xterm: + # (Debian) Transfert variable LD_LIBRARY_PATH aux shells fils (xterm) + env_ld_library_path=['env', 'LD_LIBRARY_PATH='+ os.getenv("LD_LIBRARY_PATH")] + args = args +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path + args = args + self.CMD #print "args = ", args pid = os.spawnvp(os.P_NOWAIT, args[0], args) process_id[pid]=self.CMD