Python searches for an imported module in the list of directories given by the Python variable sys.path.
To use the Adaptive Server Enterprise extension module for Python in an application, you must set either PYTHONPATH, or the Python variable sys.path to one of the following directory paths (these are the default directories where the different versions of the Adaptive Server Python extension module are installed):
Platform |
Default Installation Path |
Python Version |
---|---|---|
Windows |
%SYBASE%\%SYBASE_OCS%\python\python26_64\dll |
2.6 |
%SYBASE%\%SYBASE_OCS%\python\python27_64\dll |
2.7 |
|
%SYBASE%\%SYBASE_OCS%\python\python31_64\dll |
3.1 |
|
All other platforms |
$SYBASE/$SYBASE_OCS/python/python26_64r/lib |
2.6, 2.7 |
$SYBASE/$SYBASE_OCS/python/python31_64r/lib |
3.1 |