11-11-05 07:46 AM
Initialise sys.argv to a dummy value.
-------------------------------------
Key: MODPYTHON-88
URL: http://issues.apache.org/jira/browse/MODPYTHON-88
Project: mod_python
Type: Improvement
Components: core
Versions: 3.3
Reporter: Graham Dumpleton
Priority: Minor
As mod_python isn't executed as part of a traditional command line program b
ut is embedded into Apache, there is no actual sys.argv array for command li
ne parameters. This though causes problems when certain third party modules
are used which want for som
e reason to query sys.argv, eg. numarray:
http://www.modpython.org/pipermail/...ber/019401.html
and pychart:
http://www.modpython.org/pipermail/...ber/019360.html
Simple way of avoiding this would be if apache.init() method executed for ea
ch interpreter being created set sys.argv.
sys.argv = ['mod_python']
[ Post a follow-up to this message ]
|