<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jan 18, 2013 at 1:58 PM, Ferrous Cranus <span dir="ltr"><<a href="mailto:nikos.gr33k@gmail.com" target="_blank">nikos.gr33k@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Τη Παρασκευή, 18 Ιανουαρίου 2013 3:28:10 μ.μ. UTC+2, ο χρήστης Joel Goldstick έγραψε:<br>
<div class="im"><br>
> DocumentRoot = os.environ['HOME'] + 'public_html'<br>
<br>
</div>Yes, iam using this and it works.<br>
One last thing:<br>
<br>
my python script file is located at /home/nikos/public_html/addon_domain/cgi-bin/<br>
<br>
How python is able to run the following statement?<br>
<br>
f = open( '/home/nikos/public_html/' + page )<br>
<br>
which is clearly levels up of addon domain's DocumentRoot?<br>
<span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></span></blockquote></div><br></div><div class="gmail_extra">My website experience with python has been using mod wsgi (and django), not cgi.  I can't help you with how to configure cgi, but googling python cgi might help<br clear="all">
</div><div class="gmail_extra"><br>-- <br><div dir="ltr"><div>Joel Goldstick<br></div><a href="http://joelgoldstick.com" target="_blank">http://joelgoldstick.com</a><br></div>
</div></div>