[SOLVED] Re: Threading and Windows.
Jorge Godoy
godoy at metalab.unc.edu
Sat Oct 4 08:11:19 EDT 2003
Tim Evans <t.evans at paradise.net.nz> writes:
> Jorge Godoy <godoy at metalab.unc.edu> writes:
>> [snip]...it ended up as (this is in a separate method on the main
>> program):
>>
>> if (sys.platform == 'win32'):
>> python = 'c:/python22/pythonw.exe'
>> os.spawnv(os.P_NOWAIT, python, [python, program, parameter])
>> else:
>> os.spawnv(os.P_NOWAIT, program, [program, parameter])
>
> You should probably just be using this on both systems:
>
> os.spawnv(os.P_NOWAIT, sys.executable, [sys.executable, program, parameter])
VERY interesting.
I think that with that I can avoid checkin the OS the software will be
running in.
Thanks.
See you,
--
Godoy. <godoy at metalab.unc.edu>
More information about the Python-list
mailing list