Thanks a lot Xavier, that was exactly what was needed.<br><br><div class="gmail_quote">On Thu, Aug 2, 2012 at 11:44 AM, Xavier Combelle <span dir="ltr"><<a href="mailto:xavier.combelle@free.fr" target="_blank">xavier.combelle@free.fr</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    <div>In server.py you made a mistake in the
      declaration of the cgi directory<br>
      it should be <br>
      handler.cgi_directories = ["/"]<br>
      <br>
      <br>
      Le 02/08/2012 20:20, Smaran Harihar a écrit :<br>
    </div>
    </div><blockquote type="cite">Hi,
      <div><div class="h5"><div><br>
      </div>
      <div>I am trying to create a simple CGI Script and following this
        <a href="http://pointlessprogramming.wordpress.com/2011/02/13/python-cgi-tutorial-1/" target="_blank">tutorials</a>
        but unfortunately my output is only printing the cgi file as it
        is on the browser.</div>
      <div><br>
      </div>
      <div>I have already provided the py scripts with the executable
        functions.</div>
      <div><br>
      </div>
      <div>This is my <a href="http://dpaste.de/iEPTk/" target="_blank">server.py</a> and this is my<a href="http://dpaste.de/7SsAj/" target="_blank">
          test_cgi.py</a><br clear="all">
        <div><br>
        </div>
        -- <br>
        Thanks & Regards
        <div>Smaran Harihar</div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><div class="im"><pre>This body part will be downloaded on demand.</pre>
    </div></blockquote>
    <br>
  </div>

<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>