The Python Driver (PyDriver)
To use PyDriver:
-
Add the 64-bit C++ Driver directory to the
PATHenvironment variable. -
Make certain the Python 3.7.0 directory is in the
PATHenvironment variable. -
For Windows, make certain the VC14 runtime is installed.
Related information
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
-
Copy the files in the SDK directory to your machine and set your path to include
pdriver/bin. -
Set the environment variable
DSDRIVER_DIRto the path of theconfigdirectory in the SDK. -
Set the
LD_LIBRARY_PATHenvironment variable to include thecppdriver/libandpdriver/libdirectories.
Note:
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.