<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body>
Hi,<br>
I would like to do something like below but I lost my arguments passed
via an html web page when I reload python within my script:<br>
<br>
<i>import os,sys<br>
dirName = "/opt/oracle/product/9.2.0/lib"<br>
paths = os.environ.get("LD_LIBRARY_PATH", "").split(os.pathsep)<br>
if dirName not in paths:<br>
    paths.insert(0, dirName)<br>
    os.environ["LD_LIBRARY_PATH"] = os.pathsep.join(paths)<br>
    os.execv(sys.executable, sys.argv)<br>
<br>
import Image, ImageDraw<br>
import string<br>
import cgi<br>
from StringIO import StringIO<br>
import sys<br>
import cx_Oracle<br>
values = cgi.FieldStorage()<br>
### rest of the script below ###</i><br>
<br>
<i>values</i> contains nothing, it is normal because I launch another
instance of python with "<i>os.execv(sys.executable</i>"<i> </i>and
that way my cgi parameters don't follow the next portion of my script.
Is there a way to pass my cgi arguments to the second portion of my
script?<br>
<br>
Thank you,<br>
Mathieu<br>
</body>
</html>