You installed the Python modules.
If you installed the Python modules with the installation program, they will be located in the <dependent_path>/runtime/python directory.
The Loader database tool contains a Python interpreter. Enter the following command to call the Python interpreter included with Loader:
<independent_program>/bin/x_python
This interpreter is
set up to access the MaxDB module.
If you are using the Python interpreter included with Loader, you do not need
to follow the steps described below.
If you are not
using the Loader version of the Python interpreter, then add the Python module
to the search path of your Python interpreter:
You have two alternatives:
· Enhance the PYTHONPATH environment variable with your <python_dir> Python installation’s installation path.
Microsoft
Windows:
set PYTHONPATH=%PYTHONPATH%;<python_dir>
UNIX/Linux
(sh/bash):
PYTHONPATH=$PYTHONPATH:<python_dir>
export PYTHONPATH
· Create a text file maxdb.pth containing only your python installation’s installation path. Copy this file to a directory in the search path of the Python interpreter. The Python interpreter reads all files in the search path that have a .pth extension. It then adds the directories contained in these files to its search path.
You can use the following program to view the search path of the Python interpreter.
import sys
print sys.path
The installation contains modules for Python versions 1.5.2, 2.0, 2.1, 2.2 and 2.3. The appropriate module for your Python program is determined at runtime. Therefore you do not need to adjust the PYTHONPATH environment variable if you switch to a different Python version.
See also:
Concepts of the Database System, Variables and Examples