Start Mozilla Chat under Windows

fowlertrainer at anonym.hu fowlertrainer at anonym.hu
Fri Mar 19 03:05:20 EST 2004


Hello !

I want to Start the Mozilla chat under Windows, from a python program.
The program must be run after the starting.

But it is not working !!!

import os

dir="C:/Program Files/mozilla.org/Mozilla"
line=(dir+"/"+"Mozilla.exe","-chat")
os.chdir(dir) # try it, but it has no effect
os.spawnv(os.P_NOWAIT,line[0],line)

The splash screen is showed, but Mozilla is terminated.

Interesting thing that execle, and popen2 is working, so the Mozilla
chat is opened by them, but execle is replace the current program, and popen2
is blocked after starting...

So: anyone have an idea for this problem ???

Thanx for every help.

-- 
Best regards,
 fowlertrainer                          mailto:fowlertrainer at anonym.hu

Ps:

os.startfile() is not working with parameters... :-(





More information about the Python-list mailing list