[Zope] MySQLDA and MySQL-python - patch needed?

Bill Welch bill@carbonecho.com
Thu, 11 Jan 2001 18:45:13 +0000 (GMT)


A binary distribution comes with python built-in so that it will run
without the installer having to also go get python. PYTHONPATH is the key
to understanding module sharing. Unless you (or the packager) change
something, a binary Zope uses only the modules in the built-in python (or,
at least, has the built-in lib/python first in PYTHONPATH). In the same
vein, the two pythons don't share modules unless you change somemthing,
e.g. PYTHONPATH (or maybe both their PYTHONPATHs end in
/usr/local/python). Just to double check what's going on in your Zope, use
this code to create an external method and visit it with your browser.

import sys

def sysPath(self):
    buff = ''
    for dir in sys.path:
        buff = '%s\n%s' % (buff, dir)
    return buff

Bill.

On Thu, 11 Jan 2001 paul_s_johnson@urscorp.com wrote:

> dependencies here. Also I am confused on a basic piece of Zope
> configuration: my box has its own python and Zope has its own python, why
> two and are they sharing modules? If you want to add a module for both
> installs of python do I have to install in both? If I install a python
> module in my box's python can Zope's python find and use it? I am confused
> on this basic question.