Closed: (MODPYTHON-147) PythonImport directives causing
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-147) PythonImport directives causing




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

    Closed: (MODPYTHON-147) PythonImport directives causing  
Graham Dumpleton (JIRA)


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


 
04-11-07 06:13 PM


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Graham Dumpleton closed MODPYTHON-147.
--------------------------------------


> PythonImport directives causing duplicate entries in sys.path.
> --------------------------------------------------------------
>
>                 Key: MODPYTHON-147
>                 URL: https://issues.apache.org/jira/browse/MODPYTHON-147
>             Project: mod_python
>          Issue Type: Bug
>    Affects Versions: 3.1.4, 3.2.8
>            Reporter: Graham Dumpleton
>         Assigned To: Graham Dumpleton
>             Fix For: 3.3
>
>
> When PythonPath is used at global scope within the Apache configuration an
d more than one PythonImport directive is used against the same interpreter,
 duplicated entries can be added to sys.path.
> This is because src/mod_python.c is evaluating PythonPath every time that 
a PythonImport directive is acted upon even if a PythonImport directive for 
the same interpreter has already been processed.
> In other words, if you have:
> PythonPath "['/some/path']+sys.path"
> PythonImport module1 testing
> PythonImport module2 testing
> PythonImport module3 testing
> then '/some/path' will be added to sys.path within context of interpreter called '
testing' a total of three times.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:23 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