Run a python script as an exe and run a new process from it

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Feb 26 11:41:07 EST 2009


En Thu, 26 Feb 2009 13:32:27 -0200, venutaurus539 at gmail.com  
<venutaurus539 at gmail.com> escribió:

> On Feb 26, 7:47 pm, Tim Wintle <tim.win... at teamrubber.com> wrote:
>> On Thu, 2009-02-26 at 06:00 -0800, venutaurus... at gmail.com wrote:
>> > Thanks for the reply,
>> >            Being a newbie to python, I am finding it difficult to
>> > understand the logic even after thorough reading of comments. Is there
>> > any simpler way where I can just run a python script from the main
>> > script and exit without disturbing the second one(This will end based
>> > on some other constraints which can be handled). Or can some one throw
>> > some light on where should I run the function os.system(" python
>> > script2.py") from the main one.
>>
>> That would be a simple way of doing it :-)
>
> When I run that script on Windows it fails throwing the below error:
>
> AttributeError: 'module' object has no attribute 'fork'
>
> Please help me out..

Unless you have any special needs, just stick to os.system("...")

-- 
Gabriel Genellina




More information about the Python-list mailing list