
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
17/Mar/06 05:30 PM
|
|
When PythonPath is used at global scope within the Apache configuration and 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.
|
|
Description
|
When PythonPath is used at global scope within the Apache configuration and 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.
|
Show » |
|