How to execute python files separately as a python script?
<p>What I want to do is have a python script (that's a python IRC bot) that can run another python script in the background/separately.</p>

<p>I could do something like this:</p>

<pre><code>#irc codey stuff here...
if x == y:
    os.system('s%\stuff.py') % path 
</code></pre>

<p>But this would stop <strong>main.py</strong> and it then runs <strong>stuff.py</strong> (in 1 command prompt) which I don't want to do.<br>
So what I am trying to make this script do is when the IRC bot picks up a command via IRC, I want it to run stuff.py separately, like double clicking on <strong>stuff.py</strong> and having <strong>main.py</strong> and <strong>stuff.py</strong> running at the same time.</p>

<p>If there is a separate way of doing this in windows/linux, please, can you show both?</p>
