calling python module dynamically using exec
<p>I have 2 modules</p>

<p>mexec1.py</p>

<pre><code>def exec1func():
    print 'exec1'
    exec 'c:/python27/exec2.py'

if __name__ == '__main__':
    exec1func()
</code></pre>

<p>exec2.py</p>

<pre><code>def exec2func(parm=''):
    print 'exec2 parm',parm

if __name__ == '__main__':
    exec2func(parm='')
</code></pre>

<p>From exec1.py I want to call exec2func of the exec2.py using only exec or execfile...I don't want subprocess.Popen..</p>
