Hi,

Am Mittwoch, den 09.11.2005, 13:25 -0600 schrieb nephish:
> thanks gents,
> i am using linux. and i have been trying to get the spawn command to
> work. 
> in the docs, i dont understand what is ment by args, i dont really have
> any args to pass. 

Most programs expect their own full path as the first argument (arg 0).

> i tried like this
> os.spawnl(os.P_NOWAIT, '/path/to/program.py')

os.spawnl(os.P_NOWAIT, '/path/to/program.py', '/path/to/program.py')

Note that in order to be able to run python programs like that, they
have to:
- be executable (have executable flag)
- contain a shebang in the first line (#!/usr/bin env python)

> and it doesnt act like anything is actually happening.
> 
> the program does not really exit. i just close its window.
> should i change that?
> i dont know where to put the sys.exit.

What do you mean ? Put it where you want to quit.

> thanks for your help guys.
> 
> i have thought about running it as a thread, but the thread needs to die
> after i close the window.

umm. What are you trying to do ?

> 
> thanks again, 
> shawn

cheers,
   Danny


_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to