Import a module more times
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12214326/run-process-hidden-python">Run Process Hidden Python</a>  </p>
</blockquote>



<p>I am new in phyton and I need to write a code for "Python22" :</p>

<p>I have <code>module1</code> and <code>module2</code> , I would like to load <code>module2</code> from <code>module1</code></p>

<p>module 1 :</p>

<pre><code>import module2
</code></pre>

<p>Module2:</p>

<pre><code>import os
os.system('taskkill /FI "WINDOWTITLE eq Notepad')
</code></pre>

<p>If I open <code>module1</code> the process is killed but just one time, what I would like to do is load the <code>module2</code> each 2 min(for example)</p>

<p>I tried <code>time.sleep(2)</code> but the only way that I think I can do it is by copying the same lines much time, so its not correct.</p>

<p>Thanks for help!</p>
