After installation, run the sample script for the SAP Adaptive Server extension module
for Python.
- Locate Python samples in
$SYBASE/$SYBASE_OCS/samples/python directory.
- Verify that SAP Adaptive Server is up and running.
- Ensure that the PYTHONPATH environment variable or the Python variable
sys.path is set to one of the following directories (these are the
default directories where the different versions of the Adaptive Server Python extension
module are installed):
PYTHONPATH Settings
Python Version
|
Default Installation Path
|
2.6
|
$SYBASE\$SYBASE_OCS\python\python26_64r\lib
|
2.7
|
$SYBASE\$SYBASE_OCS\python\python27_64r\lib
|
3.1
|
$SYBASE\$SYBASE_OCS\python\python31_64r\lib
|
- Run the sample:
See the Adaptive Server Enterprise extension module for Python Programmers
Guide.