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

Gabriel Genellina gagsl-py2 at
Thu Feb 26 11:41:07 EST 2009

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

> On Feb 26, 7:47 pm, Tim Wintle < at> wrote:
>> On Thu, 2009-02-26 at 06:00 -0800, venutaurus... at 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
>> >") 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