Closed: (MODPYTHON-88) Initialise sys.argv to a dummy value.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Closed: (MODPYTHON-88) Initialise sys.argv to a dummy value.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-05-06 07: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 fo
r 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']






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:17 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register