6 # -----------------------------------------------------------------------------
8 # Definition des classes d'objets pour le lancement des Server CORBA
12 """Generic class for CORBA server launch"""
18 if self.args['xterm']:
19 self.ARGS=['xterm', '-iconic', '-sb', '-sl', '500', '-hold']
21 def __init__(self,args):
29 if self.args['xterm']:
30 # (Debian) send LD_LIBRARY_PATH to children shells (xterm)
31 env_ld_library_path=['env', 'LD_LIBRARY_PATH='
32 + os.getenv("LD_LIBRARY_PATH")]
33 myargs = myargs +['-T']+self.CMD[:1]+['-e'] + env_ld_library_path
34 command = myargs + self.CMD
35 print "command = ", command
36 if sys.platform == "win32":
38 #cmd_str = "\"" + string.join(command, " ") + "\""
40 #pid = win32pm.spawnpid( cmd_str )
41 pid = win32pm.spawnpid( string.join(command, " ") )
43 pid = os.spawnvp(os.P_NOWAIT, command[0], command)
44 process_id[pid]=self.CMD