Popen execution error
<p>This is how my code looks and I get an error, while using Popen</p>

<p>test.py</p>

<pre><code>import subprocess
import sys

def test(jobname):
    print jobname
    p=subprocess.Popen([sys.executable,jobname,parm1='test',parm2='test1'])


if __name__ == "__main__":
   test(r'C:\Python27\test1.py')
</code></pre>

<p>test1.py</p>

<pre><code>def test1(parm1,parm2):
  print 'test1',parm1

if __name__ = '__main__':
  test1(parm1='',parm2='')
</code></pre>

<p>Error</p>

<p>Syntax error</p>
