Apache Mod-Python - Closed: (MODPYTHON-88) Initialise sys.argv to a dummy value.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > March 2006 > Closed: (MODPYTHON-88) Initialise sys.argv to a dummy value.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Closed: (MODPYTHON-88) Initialise sys.argv to a dummy value.
Graham Dumpleton (JIRA)

2006-03-05, 2:46 am

[ http://issues.apache.org/jira/brows...HON-88?page=all ]

Graham Dumpleton closed MODPYTHON-88:
-------------------------------------


> 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.2.7, 2.7.10, 3.1.3, 3.1.4
> Reporter: Graham Dumpleton
> Priority: Minor
> Fix For: 3.2.7


>
> As mod_python isn't executed as part of a traditional command line program but is embedded into Apache, there is no actual sys.argv array for command line parameters. This though causes problems when certain third party modules are used which want for s

ome 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 each interpreter being created set sys.argv.
> sys.argv = ['mod_python']


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com