The Python Driver (PyDriver)
To use PyDriver:
1. | Add the 64-bit C++ Driver directory to the PATH environment variable. |
2. | Make certain the Python 3.7.0 directory is in the PATH environment variable. |
3. | For Windows, make certain the VC14 runtime is installed. |
Windows Installation
To install PDriver on Windows systems, run the PDriverInstaller.msi
installer in the pdriver
directory of the SDK download. By default, this installs PDriver to the c:\TIBCO\datasynapse\PDriver
directory.
This also installs the VC runtime if it is needed, and associates .PDS
files with PDriver.
The installer sets the DS_PDRIVER_CONF
environment variable, which specifies the location of the driver.properties
file, to the installation directory. Verify that the driver.properties
file contains the correct Manager and authentication settings so that the Driver points to your local Manager.
UNIX Installation
To install PDriver on UNIX systems
Procedure
1. | Copy the files in the SDK directory to your machine and set your path to include pdriver/bin . |
2. | Set the environment variable DSDRIVER_DIR to the path of the config directory in the SDK. |
3. | Set the LD_LIBRARY_PATH environment variable to include the cppdriver/lib and pdriver/lib directories. |
Note that only Pdriver linux64-gcc34
is supported from GridServer version 7.1.0 onwards.
Using PDriver
To run a PDriver script file, invoke the PDriver binary and pass the PDriver script file as the first argument. For example, on UNIX systems:
pdriver examples/example.pds
Running pdriver
or PDriver.exe
without a PDS argument provides a usage message.
The examples
directory contains several example PDriver script files.